Example #1
0
        protected RelevantObjectsGenerator(GeneratorSettings settings)
        {
            Settings = settings;

            // Make command
            GeneratorSettingsCommand = new CommandImplementation(
                e => {
                try {
                    var settingsWindow = new GeneratorSettingsWindow(Settings);
                    settingsWindow.ShowDialog();
                } catch (Exception ex) { ex.Show(); }
            });
        }
        protected RelevantObjectsGenerator()
        {
            Settings = new GeneratorSettings(this);

            // Make command
            GeneratorSettingsCommand = new CommandImplementation(
                e => {
                try {
                    var settingsWindow = new GeneratorSettingsWindow(Settings);
                    settingsWindow.ShowDialog();
                } catch (Exception ex) { MessageBox.Show(ex.Message); }
            });
        }