Files
ayanova7/source/Plugins/AyaNova.Plugin.QBOI/ApproveCompanyFile.cs
2018-06-29 19:47:36 +00:00

155 lines
5.8 KiB
C#

using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
namespace AyaNova.PlugIn.QBOI
{
/// <summary>
/// Summary description for ApproveCompanyFile.
/// </summary>
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 lblExplain;
/// <summary>
/// Required designer variable.
/// </summary>
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");
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
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.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(460, 118);
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(11, 119);
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(562, 35);
this.lblCompany.TabIndex = 31;
this.lblCompany.Text = "A Company";
//
// 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, 35);
this.lblExplain.Name = "lblExplain";
this.lblExplain.Size = new System.Drawing.Size(562, 27);
this.lblExplain.TabIndex = 33;
this.lblExplain.Text = "AyaNova QBOI 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(562, 161);
this.ControlBox = false;
this.Controls.Add(this.lblExplain);
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.TopMost = true;
this.Load += new System.EventHandler(this.ApproveCompanyFile_Load);
this.ResumeLayout(false);
}
#endregion
private string _CompanyName;
private string _CompanyPath;
public string QBCompanyName
{
set
{
_CompanyName=value;
}
}
public string QBCompanyPath
{
set
{
_CompanyPath=value;
}
}
private void ApproveCompanyFile_Load(object sender, System.EventArgs e)
{
this.lblCompany.Text=_CompanyName;
Util.SetControlBackQBOIColor(this);
Util.SetControlBackQBOIColor(lblExplain);
Util.SetControlBackQBOIColor(lblCompany);
}
}
}