예제 #1
0
        private void toolStripButtonAdd_Click(object sender, EventArgs e)
        {
            NewCustomerForm frm = new NewCustomerForm();

            frm.ShowDialog();
            if (frm.DialogResult == System.Windows.Forms.DialogResult.OK)
            {
                toolStripButtonAll.PerformClick();
            }
        }
예제 #2
0
        private void btnNewCustomer_Click(object sender, EventArgs e)
        {
            NewCustomerForm frm = new NewCustomerForm();

            frm.ShowDialog();
            if (frm.DialogResult == System.Windows.Forms.DialogResult.OK)
            {
                cbbCustomerLoad(Customer.All(0));
            }
        }
예제 #3
0
 private void toolStripButtonUpdate_Click(object sender, EventArgs e)
 {
     if (listViewCustomers.SelectedItems.Count > 0)
     {
         NewCustomerForm frm = new NewCustomerForm();
         frm.CustomerID = listViewCustomers.SelectedItems[0].SubItems[0].Text;
         frm.ShowDialog();
         if (frm.DialogResult == System.Windows.Forms.DialogResult.OK)
         {
             toolStripButtonAll.PerformClick();
         }
     }
 }