private void MatComboBox_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { if (e.Button.Index == 1 && mat_list.Any()) { using (var f = new frmIntermediateWeighingList(mat_list)) { if (f.ShowDialog() == DialogResult.OK) { MatComboBox.EditValue = f.focused_row != null ? f.focused_row.MatId : MatComboBox.EditValue; AmountEdit.Focus(); } } } else { MessageBox.Show("Сировина для зважування відсутня"); } }
private void frmWBReturnDetIn_Shown(object sender, EventArgs e) { GetOk(); this.Text = this.Text + " " + MatComboBox.Text; AmountEdit.Focus(); /* * try * { * ComPort->Open(); * ComPort->ClearBuffer(true, true); * Timer1->Enabled = true; * } * catch(...) {} * * if(showOutList) cxButton3->Click(); */ }
private void frmWayBillTMCDet_Shown(object sender, EventArgs e) { AmountEdit.Focus(); }
private void frmIntermediateWeighingDet_Shown(object sender, EventArgs e) { AmountEdit.Focus(); }
private void frmMatListEdit_Shown(object sender, EventArgs e) { AmountEdit.Focus(); }
private void frmSetDiscountCard_Shown(object sender, EventArgs e) { AmountEdit.Focus(); }
private void frmTechProcDet_Shown(object sender, EventArgs e) { AmountEdit.Focus(); }