/// <summary>Adds a new solution to the list.</summary>
        public void AddSolution()
        {
            NewSolutionViewModel viewModel = new NewSolutionViewModel(this.windowManager);

            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.Solutions.Add(viewModel.GetSolution());
            }
        }
예제 #2
0
        /// <summary>Adds a new solution to the list.</summary>
        public void AddSolution()
        {
            NewSolutionViewModel viewModel = new NewSolutionViewModel(this.windowManager);

            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.Solutions.Add(viewModel.GetSolution());
            }
        }