using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; namespace AyaNova.PlugIn.PTI { /// /// Summary description for ApproveCompanyFile. /// public class ApproveCompanyFile : System.Windows.Forms.Form { private System.Windows.Forms.Button btnOK; private System.Windows.Forms.Button btnCancel; private Infragistics.Win.Misc.UltraLabel lblCompany; private Infragistics.Win.Misc.UltraLabel lblPath; private Infragistics.Win.Misc.UltraLabel lblExplain; /// /// Required designer variable. /// private System.ComponentModel.Container components = null; public ApproveCompanyFile() { // // Required for Windows Form Designer support // InitializeComponent(); this.btnCancel.Image = Util.AyaImage("Cancel24"); this.btnOK.Image = Util.AyaImage("OK24"); } /// /// Clean up any resources being used. /// protected override void Dispose( bool disposing ) { if( disposing ) { if(components != null) { components.Dispose(); } } base.Dispose( disposing ); } #region Windows Form Designer generated code /// /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// private void InitializeComponent() { this.btnOK = new System.Windows.Forms.Button(); this.btnCancel = new System.Windows.Forms.Button(); this.lblCompany = new Infragistics.Win.Misc.UltraLabel(); this.lblPath = new Infragistics.Win.Misc.UltraLabel(); this.lblExplain = new Infragistics.Win.Misc.UltraLabel(); this.SuspendLayout(); // // btnOK // this.btnOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnOK.BackColor = System.Drawing.SystemColors.Control; this.btnOK.DialogResult = System.Windows.Forms.DialogResult.OK; this.btnOK.Location = new System.Drawing.Point(463, 125); this.btnOK.Name = "btnOK"; this.btnOK.Size = new System.Drawing.Size(90, 40); this.btnOK.TabIndex = 30; this.btnOK.UseVisualStyleBackColor = false; // // btnCancel // this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnCancel.BackColor = System.Drawing.SystemColors.Control; this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.btnCancel.Location = new System.Drawing.Point(14, 126); this.btnCancel.Name = "btnCancel"; this.btnCancel.Size = new System.Drawing.Size(90, 40); this.btnCancel.TabIndex = 29; this.btnCancel.UseVisualStyleBackColor = false; // // lblCompany // this.lblCompany.BackColorInternal = System.Drawing.SystemColors.Window; this.lblCompany.Dock = System.Windows.Forms.DockStyle.Top; this.lblCompany.Font = new System.Drawing.Font("Tahoma", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblCompany.Location = new System.Drawing.Point(0, 0); this.lblCompany.Name = "lblCompany"; this.lblCompany.Size = new System.Drawing.Size(565, 35); this.lblCompany.TabIndex = 31; this.lblCompany.Text = "A Company"; // // lblPath // this.lblPath.BackColorInternal = System.Drawing.SystemColors.Window; this.lblPath.Dock = System.Windows.Forms.DockStyle.Top; this.lblPath.Location = new System.Drawing.Point(0, 35); this.lblPath.Name = "lblPath"; this.lblPath.Size = new System.Drawing.Size(565, 42); this.lblPath.TabIndex = 32; // // lblExplain // this.lblExplain.BackColorInternal = System.Drawing.SystemColors.Window; this.lblExplain.Dock = System.Windows.Forms.DockStyle.Top; this.lblExplain.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblExplain.Location = new System.Drawing.Point(0, 77); this.lblExplain.Name = "lblExplain"; this.lblExplain.Size = new System.Drawing.Size(565, 27); this.lblExplain.TabIndex = 33; this.lblExplain.Text = "AyaNova PTI will work with this company file"; // // ApproveCompanyFile // this.AcceptButton = this.btnOK; this.AutoScaleBaseSize = new System.Drawing.Size(6, 15); this.CancelButton = this.btnCancel; this.ClientSize = new System.Drawing.Size(565, 168); this.ControlBox = false; this.Controls.Add(this.lblExplain); this.Controls.Add(this.lblPath); this.Controls.Add(this.lblCompany); this.Controls.Add(this.btnOK); this.Controls.Add(this.btnCancel); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.Name = "ApproveCompanyFile"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Accept company file"; this.Load += new System.EventHandler(this.ApproveCompanyFile_Load); this.ResumeLayout(false); } #endregion private string _CompanyName; private string _CompanyPath; public string PTCompanyName { set { _CompanyName=value; } } public string PTCompanyPath { set { _CompanyPath=value; } } private void ApproveCompanyFile_Load(object sender, System.EventArgs e) { this.lblCompany.Text=_CompanyName; this.lblPath.Text=_CompanyPath; } } }