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

            frm.ShowDialog();
            if (frm.DialogResult == System.Windows.Forms.DialogResult.OK)
            {
                listViewSuppliersLoad(Supplier.All());
            }
        }
예제 #2
0
        private void btnNewSupplier_Click(object sender, EventArgs e)
        {
            NewSupplierForm frm = new NewSupplierForm();

            frm.ShowDialog();
            if (frm.DialogResult == System.Windows.Forms.DialogResult.OK)
            {
                cbbSupplierLoad();
            }
        }
예제 #3
0
 private void toolStripButtonUpdateSupplier_Click(object sender, EventArgs e)
 {
     if (listViewSuppliers.SelectedItems.Count > 0)
     {
         NewSupplierForm frm = new NewSupplierForm();
         frm.SupplierID = MyConvert.ToInt32(listViewSuppliers.SelectedItems[0].SubItems[0].Text);
         frm.ShowDialog();
         if (frm.DialogResult == System.Windows.Forms.DialogResult.OK)
         {
             listViewSuppliersLoad(Supplier.All());
         }
     }
 }