Пример #1
0
        private void Button_Add_Click(object sender, RoutedEventArgs e)
        {
            var window = new VpsDialogWindow();

            Close();
            window.Show();
        }
Пример #2
0
        private void Button_Edit_Click(object sender, RoutedEventArgs e)
        {
            int id  = listVps.SelectedIndex;
            var vps = (VPS)listVps.SelectedItem;

            if (id == -1)
            {
                MessageBox.Show("Выберите VPS");
            }
            var window = new VpsDialogWindow(vps);

            Close();
            window.Show();
        }