Exemple #1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            fmCustomerEdit fm = new fmCustomerEdit();

            fm.ShowInTaskbar = false;
            fm.MinimizeBox   = false;
            fm.MaximizeBox   = false;
            fm.StartPosition = FormStartPosition.CenterParent;
            if (fm.ShowDialog() == DialogResult.OK)
            {
                LoadList();
            }
        }
Exemple #2
0
 private void btnUpdate_Click(object sender, EventArgs e)
 {
     if (listView1.SelectedItems.Count > 0)
     {
         CustomerId = listView1.SelectedItems[0].SubItems[1].Text.ToTryInt();
         fmCustomerEdit fm = new fmCustomerEdit(CustomerId);
         fm.ShowInTaskbar = false;
         fm.MinimizeBox   = false;
         fm.MaximizeBox   = false;
         fm.StartPosition = FormStartPosition.CenterParent;
         if (fm.ShowDialog() == DialogResult.OK)
         {
             LoadList();
         }
     }
 }