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("Сировина для зважування відсутня");
     }
 }
Ejemplo n.º 2
0
        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();
             */
        }
Ejemplo n.º 3
0
 private void frmWayBillTMCDet_Shown(object sender, EventArgs e)
 {
     AmountEdit.Focus();
 }
 private void frmIntermediateWeighingDet_Shown(object sender, EventArgs e)
 {
     AmountEdit.Focus();
 }
Ejemplo n.º 5
0
 private void frmMatListEdit_Shown(object sender, EventArgs e)
 {
     AmountEdit.Focus();
 }
Ejemplo n.º 6
0
 private void frmSetDiscountCard_Shown(object sender, EventArgs e)
 {
     AmountEdit.Focus();
 }
Ejemplo n.º 7
0
 private void frmTechProcDet_Shown(object sender, EventArgs e)
 {
     AmountEdit.Focus();
 }