Exemple #1
0
 private void ConfigureCustomerList()
 {
     ListClientDataGridView.SelectionChanged -= ListClientDataGridView_SelectionChanged;
     ListClientDataGridView.DataSource        = null;
     ListClientDataGridView.DataSource        = source;
     ListClientDataGridView.Refresh();
     if (ListClientDataGridView.Rows.Count.Equals(0))
     {
         DeleteContractButton.Visible = !IsNewRecord;
     }
     else
     {
         DeleteContractButton.Visible = false;
     }
     ConfigureGrid();
     ListClientDataGridView.SelectionChanged += ListClientDataGridView_SelectionChanged;
 }
Exemple #2
0
 private void ListRefreshToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ConfigureCustomerList();
     ListClientDataGridView.Focus();
 }