public ProtocolDataCollector(MySqlCommand cmdref, FormGroup fgroupref) { reason = 1; Group = fgroupref; proto2data = new double[4, 7]; period.Begin = DateTime.Now; period.End = DateTime.Now; InspectionDate = DateTime.Now; YearsCount = 1; MySQL_cmd = (MySqlCommand)cmdref; dfi.NumberDecimalSeparator = "."; }
public ProtocolTabPage(FormMain fmref, int id_inspection) { this.FM = fmref; this.owner = FM.Autorized_Inspector_ID; selectedItem = new SelectedItem(true); formGroup = new FormGroup(FM.MySQL_cmd); this.Protocol = new ProtocolDataCollector(FM.MySQL_cmd, formGroup); Protocol.Inspector = owner; Protocol.Inspection = id_inspection; if (id_inspection != 0) { Protocol.Load(); } this.tabPage = new TabPage(); this.tabPage.Tag = id_inspection; this.splitContainer = new SplitContainer(); this.labelNumber = new Label(); this.labelName = new Label(); this.textBoxNumber = new TextBox(); this.textBoxName = new TextBox(); this.buttonGroup = new Button(); this.groupBox1 = new GroupBox(); this.listBox1 = new ListBox(); this.groupBox2 = new GroupBox(); this.listBox2 = new ListBox(); this.labelReason = new Label(); this.comboBoxReason = new ComboBox(); this.groupBoxDate = new GroupBox(); this.dateTimePicker1 = new DateTimePicker(); this.groupBoxPeriod = new GroupBox(); this.dateTimePicker2 = new DateTimePicker(); this.labelDash = new Label(); this.dateTimePicker3 = new DateTimePicker(); this.labelGrid = new Label(); this.dataGridView = new DataGridView(); this.dataGridViewCellStyle = new DataGridViewCellStyle(); this.Column1 = new DataGridViewTextBoxColumn(); this.Column2 = new DataGridViewTextBoxColumn(); this.Column3 = new DataGridViewTextBoxColumn(); this.Column4 = new DataGridViewTextBoxColumn(); this.Column5 = new DataGridViewTextBoxColumn(); this.buttonComment = new Button(); this.buttonComplite = new Button(); this.buttonSave = new Button(); this.buttonCancel = new Button(); ((System.ComponentModel.ISupportInitialize)(this.splitContainer)).BeginInit(); this.splitContainer.Panel1.SuspendLayout(); this.splitContainer.Panel2.SuspendLayout(); this.splitContainer.SuspendLayout(); this.groupBox1.SuspendLayout(); this.groupBox2.SuspendLayout(); this.groupBoxDate.SuspendLayout(); this.groupBoxPeriod.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).BeginInit(); ConfigControls(); this.tabPage.ResumeLayout(false); this.splitContainer.Panel1.ResumeLayout(false); this.splitContainer.Panel1.PerformLayout(); this.splitContainer.Panel2.ResumeLayout(false); this.splitContainer.Panel2.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.splitContainer)).EndInit(); this.splitContainer.ResumeLayout(false); this.groupBox1.ResumeLayout(false); this.groupBox2.ResumeLayout(false); this.groupBoxDate.ResumeLayout(false); this.groupBoxPeriod.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).EndInit(); }