Example #1
0
        /// <summary>Adds a new configuration.</summary>
        public void AddConfiguration()
        {
            AddConfigurationViewModel viewModel = new AddConfigurationViewModel();

            Dictionary <string, object> settingsDictionary = new Dictionary <string, object>
            {
                { "ResizeMode", ResizeMode.NoResize }
            };

            bool?answer = this.windowManager.ShowDialog(viewModel, null, settingsDictionary);

            if (answer.HasValue && answer.Value)
            {
                this.Configurations.Add(viewModel.GetConfiguration());
            }
        }
        /// <summary>Adds a new configuration.</summary>
        public void AddConfiguration()
        {
            AddConfigurationViewModel viewModel = new AddConfigurationViewModel();

            Dictionary<string, object> settingsDictionary = new Dictionary<string, object>
            {
                { "ResizeMode", ResizeMode.NoResize }
            };

            bool? answer = this.windowManager.ShowDialog(viewModel, null, settingsDictionary);

            if (answer.HasValue && answer.Value)
            {
                this.Configurations.Add(viewModel.GetConfiguration());
            }
        }