Exemplo n.º 1
0
        private void repositoryItemCheckEdit1_CheckedChanged(object sender, EventArgs e)
        {
            DataRow row    = gridView1.GetDataRow(gridView1.FocusedRowHandle);
            string  Cus_ID = row["customerID"].ToString();

            Master.Customer NewCus = new Master.Customer(Cus_ID);
            NewCus.ShowDialog();
            Master.Database.CustomerData Cust = new Master.Database.CustomerData();
            try
            {
                Cust.FnConn();
                DataTable dt = Cust.FillData();
                gridControl1.DataSource = dt;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message.ToString());
            }
        }
Exemplo n.º 2
0
 private void barButtonItem1_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     try
     {
         Master.Customer a = new Master.Customer(null);
         a.ShowDialog();
         Master.Database.CustomerData Cust = new Master.Database.CustomerData();
         try
         {
             Cust.FnConn();
             DataTable dt = Cust.FillData();
             gridControl1.DataSource = dt;
         }
         catch (Exception ex)
         {
             MessageBox.Show(ex.Message.ToString());
         }
     }
     catch (Exception ex)
     {}
 }
Exemplo n.º 3
0
 private void barButtonItem4_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     Test.Master.Customer cu = new Master.Customer(null);
     cu.ShowDialog();
 }