예제 #1
0
        private void button_add_Click(object sender, RoutedEventArgs e)
        {
            config_window cw = new config_window();

            cw.Owner = this;
            cw.Show();
        }
예제 #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();
        }