Exemple #1
0
        private void buttonEdit1_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            frmPartNumberList pnl = new frmPartNumberList();

            pnl.ShowDialog();
            if (pnl.Selectedpartnumber != null)
            {
                if (pnl.Selectedpartnumber != string.Empty)
                {
                    buttonEdit1.Text = pnl.Selectedpartnumber;
                    SetSoftwareVersions();
                    comboBoxEdit1.EditValue = pnl.SelectedSoftwareID;
                }
            }
            if (buttonEdit1.Text != "")
            {
                ConvertPartNumber();
            }
            else
            {
                simpleButton2.Enabled = false;
                simpleButton3.Enabled = false;
                simpleButton4.Enabled = false;
            }
        }
 private void buttonEdit1_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
 {
     frmPartNumberList pnl = new frmPartNumberList();
     pnl.ShowDialog();
     if (pnl.Selectedpartnumber != null)
     {
         if (pnl.Selectedpartnumber != string.Empty)
         {
             buttonEdit1.Text = pnl.Selectedpartnumber;
             SetSoftwareVersions();
             comboBoxEdit1.EditValue = pnl.SelectedSoftwareID;
         }
     }
     if (buttonEdit1.Text != "")
     {
         ConvertPartNumber();
     }
     else
     {
         simpleButton2.Enabled = false;
         simpleButton3.Enabled = false;
         simpleButton4.Enabled = false;
     }
 }