Beispiel #1
0
        public frmCustomer()
        {
            InitializeComponent();
            cbo_Approved.Items.Insert(0, true);
            cbo_Approved.Items.Insert(1, false);

            Program.eButton   = Program.Button.None;
            m_CurrentInstance = this;
        }
Beispiel #2
0
 private void sbtnDetail_Click(object sender, EventArgs e)
 {
     if (gridView1.FocusedRowHandle < 0)
     {
         return;
     }
     else
     {
         string ID = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, gcolID).ToString();
         for (int i = 0; i < lstCustomerInfo.Count; i++)
         {
             if (lstCustomerInfo[i].ID == ID)
             {
                 oSelectedCustomerInfo = lstCustomerInfo[i];
                 frmCustomer ofrm = new frmCustomer();
                 ofrm.ShowDialog();
                 SetDataSource();
                 break;
             }
         }
     }
 }