Esempio n. 1
0
        private void button_add_Click(object sender, RoutedEventArgs e)
        {
            config_window cw = new config_window();

            cw.Owner = this;
            cw.Show();
        }
Esempio n. 2
0
        private void button_edit_Click(object sender, RoutedEventArgs e)
        {
            if (configs.Count < 1 || dataGrid_config.SelectedIndex < 0)
            {
                return;
            }
            config_window cw = new config_window();

            cw.load_config(configs[dataGrid_config.SelectedIndex].serialize(), dataGrid_config.SelectedIndex);
            cw.Owner = this;
            cw.Show();
        }