This commit is contained in:
96
source/Plugins/AyaNova.Plugin.QBOI/SetAutoClose.cs
Normal file
96
source/Plugins/AyaNova.Plugin.QBOI/SetAutoClose.cs
Normal file
@@ -0,0 +1,96 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace AyaNova.PlugIn.QBOI
|
||||
{
|
||||
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();
|
||||
|
||||
|
||||
}
|
||||
|
||||
/// <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 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.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.ShowInTaskbar = true;
|
||||
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)
|
||||
{
|
||||
Util.SetControlBackQBOIColor(this);
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user