示例#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();
     }
 }
示例#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();
     }
 }
示例#3
0
        private void addButton_Click(object sender, EventArgs e)
        {
            var addOrganizationDialog = new OrganizationDialog(DialogState.Add);

            addOrganizationDialog.ShowDialog();
        }