Пример #1
0
        private void deleteSelectedRow()
        {
            VarsProducts      varsProducts      = (VarsProducts)listViewProducts.SelectedItem;
            AdminConfirmation adminConfirmation = new AdminConfirmation(0, "product", varsProducts.product);

            adminConfirmation.Closed += adminConfirmationClosed;
            this.Close();
            adminConfirmation.ShowDialog();
        }
Пример #2
0
        private void deleteSelectedRow()
        {
            VarsCompanies varsCompany = (VarsCompanies)listViewCustomers.SelectedItem;

            AdminConfirmation adminConfirmation = new AdminConfirmation(0, "company", varsCompany.company);

            adminConfirmation.Closed += adminConfirmationClosed;
            this.Close();
            adminConfirmation.ShowDialog();
        }
Пример #3
0
        private void deleteSelectedRow()
        {
            VarsProjectsToDo varsProjectsToDo = (VarsProjectsToDo)listViewProjects.SelectedItem;

            AdminConfirmation adminConfirmation = new AdminConfirmation(int.Parse(varsProjectsToDo.id), "project", null);

            adminConfirmation.Closed += adminConfirmationClosed;
            this.Close();
            adminConfirmation.ShowDialog();
        }