using System; using System.Collections; using System.ComponentModel; using System.Drawing; using System.Windows.Forms; namespace AyaNova.PlugIn.QBI { public class SetAutoClose : SetBase { private System.Windows.Forms.CheckBox ckAutoClose; private System.ComponentModel.IContainer components = null; public SetAutoClose() { // This call is required by the Windows Form Designer. InitializeComponent(); } /// /// Clean up any resources being used. /// protected override void Dispose( bool disposing ) { if( disposing ) { if (components != null) { components.Dispose(); } } base.Dispose( disposing ); } #region Designer generated code /// /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// private void InitializeComponent() { this.ckAutoClose = new System.Windows.Forms.CheckBox(); this.SuspendLayout(); // // ckAutoClose // this.ckAutoClose.Location = new System.Drawing.Point(16, 302); this.ckAutoClose.Name = "ckAutoClose"; this.ckAutoClose.Size = new System.Drawing.Size(534, 28); this.ckAutoClose.TabIndex = 29; this.ckAutoClose.Text = "Auto close invoiced work orders"; // // SetAutoClose // this.AutoScaleBaseSize = new System.Drawing.Size(6, 15); this.ClientSize = new System.Drawing.Size(637, 408); this.Controls.Add(this.ckAutoClose); this.Name = "SetAutoClose"; this.Text = ""; this.Load += new System.EventHandler(this.SetAutoClose_Load); this.Controls.SetChildIndex(this.ckAutoClose, 0); this.ResumeLayout(false); } #endregion private void SetAutoClose_Load(object sender, System.EventArgs e) { } public bool AutoClose { get { return this.ckAutoClose.Checked; } set { this.ckAutoClose.Checked=value; } } public override void btnOK_Click(object sender, EventArgs e) { base.ClosingHandled=true; this.DialogResult=DialogResult.OK; this.Close(); } } }