private void InitUserInfo() { this._dataTableSn = new DataTable(); this._dataTableSn.Columns.Add("SN", System.Type.GetType("System.String")); this.dataGridViewBind.DataSource = this._dataTableSn; this.dataGridViewBind.Columns[0].Width = (int)(this.dataGridViewBind.Width * 0.8); this._dataTableBh1 = new DataTable(); this._dataTableBh1.Columns.Add("SN", System.Type.GetType("System.String")); this._dataTableBh1.Columns.Add("BH INFO", System.Type.GetType("System.String")); this._dataTableBh1.Columns.Add("ADD CURRENT", System.Type.GetType("System.String")); this._dataTableBh1.Columns.Add("BURN IN HOURS", System.Type.GetType("System.String")); this.dataGridViewBh1.DataSource = this._dataTableBh1; this.dataGridViewBh1.Columns[0].Width = (int)(this.dataGridViewBh1.Width * 0.3); this.dataGridViewBh1.Columns[0].SortMode = DataGridViewColumnSortMode.NotSortable; this.dataGridViewBh1.Columns[1].Width = (int)(this.dataGridViewBh1.Width * 0.2); this.dataGridViewBh1.Columns[1].SortMode = DataGridViewColumnSortMode.NotSortable; this.dataGridViewBh1.Columns[2].Width = (int)(this.dataGridViewBh1.Width * 0.2); this.dataGridViewBh1.Columns[2].SortMode = DataGridViewColumnSortMode.NotSortable; this.dataGridViewBh1.Columns[3].Width = (int)(this.dataGridViewBh1.Width * 0.2); this.dataGridViewBh1.Columns[3].SortMode = DataGridViewColumnSortMode.NotSortable; this._dataTableBh2 = new DataTable(); this._dataTableBh2.Columns.Add("SN", System.Type.GetType("System.String")); this._dataTableBh2.Columns.Add("BH INFO", System.Type.GetType("System.String")); this._dataTableBh2.Columns.Add("ADD CURRENT", System.Type.GetType("System.String")); this._dataTableBh2.Columns.Add("BURN IN HOURS", System.Type.GetType("System.String")); this.dataGridViewBh2.DataSource = this._dataTableBh2; this.dataGridViewBh2.Columns[0].Width = (int)(this.dataGridViewBh2.Width * 0.3); this.dataGridViewBh2.Columns[0].SortMode = DataGridViewColumnSortMode.NotSortable; this.dataGridViewBh2.Columns[1].Width = (int)(this.dataGridViewBh2.Width * 0.2); this.dataGridViewBh2.Columns[1].SortMode = DataGridViewColumnSortMode.NotSortable; this.dataGridViewBh2.Columns[2].Width = (int)(this.dataGridViewBh2.Width * 0.2); this.dataGridViewBh2.Columns[2].SortMode = DataGridViewColumnSortMode.NotSortable; this.dataGridViewBh2.Columns[3].Width = (int)(this.dataGridViewBh2.Width * 0.2); this.dataGridViewBh2.Columns[3].SortMode = DataGridViewColumnSortMode.NotSortable; _judgeCoc = new JudgeCoc(new MesServiceClient(), CocPnTableReader.GetInstance(@"BiFiles\CFP8CocPnTable.xml")); }
public JudgeCoc(MesServiceClient client, CocPnTableReader cocPnTableReader) { _mesClient = client; _cocPnTableReader = cocPnTableReader; _cocPnTableReader.ReadPnTable(); }