private void WorkMaintainControl_Load(object sender, EventArgs e) { // laod field int a, b; _workManager.CreateDataGridView(dgvWorkHead); cbxMode.Items.Add("全部"); cbxMode.Items.Add("未完成"); cbxMode.Items.Add("完成"); List <string> items = _workManager.LoadFrameMode(); items = _workManager.LoadDegree(); for (int i = 0; i < items.Count; i++) { cbxderge.Items.Add(items[i]); } List <string> item = _workManager.LoadFrameMode(); item = _workManager.LoadCreateMan(); for (int i = 0; i < item.Count; i++) { cbxcreate.Items.Add(item[i]); } cbxMode.SelectedIndex = 0; tbxOutputFileName.Text = DateTime.Now.ToString("HHmmss"); tbxOutputPath.Text = DefineSeting.OutPath; for (int i = 1; i < dgvWorkHead.Columns.Count; i++) { dgvWorkHead.Columns[i].ReadOnly = true; } }
private void WorkCreateControl_Load(object sender, EventArgs e) { _workManager.CreateDataGridView(dgvDetial); Thread t = new Thread(loadData); t.IsBackground = true; t.Start(); tbxOutputFileName.Text = DateTime.Now.ToString("HHmmss"); tbxOutputPath.Text = DefineSeting.OutPath; _idleCommandSendEvent = new ManualResetEvent(false); _threadUpdate = new Thread(UpdateData); _threadUpdate.IsBackground = true; _threadUpdate.Name = "WorkCreate"; _threadUpdate.Start(); // FrameMOde List <string> items = _workManager.LoadFrameMode(); for (int i = 0; i < items.Count; i++) { cbxFrameMode.Items.Add(items[i]); } // Degree items = _workManager.LoadDegree(); for (int i = 0; i < items.Count; i++) { cbxAddDegree.Items.Add(items[i]); } // FrameMOde items = _workManager.LoadCreateMan(); for (int i = 0; i < items.Count; i++) { cbxCreateMan.Items.Add(items[i]); } tbxCustomName.Focus(); }