Esempio n. 1
0
 private void openButton_Click(object sender, EventArgs e)
 {
     if (CheckSelectedRow(organizationsTable))
     {
         var inn = GetSelectedIdFromTable(organizationsTable);
         var addOrganizationDialog = new OrganizationDialog(DialogState.Open, inn);
         addOrganizationDialog.ShowDialog();
     }
 }
Esempio n. 2
0
 private void editButton_Click(object sender, EventArgs e)
 {
     if (CheckSelectedRow(organizationsTable))
     {
         var id = GetSelectedIdFromTable(organizationsTable);
         var addOrganizationDialog = new OrganizationDialog(DialogState.Edit, id);
         addOrganizationDialog.ShowDialog();
         updateTable();
     }
 }
Esempio n. 3
0
        private void addButton_Click(object sender, EventArgs e)
        {
            var addOrganizationDialog = new OrganizationDialog(DialogState.Add);

            addOrganizationDialog.ShowDialog();
        }