Ejemplo n.º 1
0
        private void Add_Contract_Click(object sender, EventArgs e)
        {
            Add_Edit_Contract AddContract = new Add_Edit_Contract(1, CurrentUser);

            AddContract.ShowDialog();
            this.Refresh();
        }
Ejemplo n.º 2
0
 private void Edit_Contract_Click(object sender, EventArgs e)
 {
     if (this.Contracts_List_View.SelectedRows.Count == 1)
     {
         Add_Edit_Contract EditContract = new Add_Edit_Contract(2, CurrentUser);
         EditContract.SetDataBeforeEdit(this.Contracts_List_View, this.Contracts_List_View.CurrentRow.Index);
         EditContract.ShowDialog();
         this.Refresh();
     }
     else
     {
         MessageBox.Show("Select ONE Record To Edit");
     }
 }