Esempio n. 1
0
        /// <summary>
        /// Method to invoke when the MultipleChoiceWindow command is executed.
        /// </summary>
        private void OnMultipleChoiceWindowExecute()
        {
            // TODO: not really MVVM
            var choices = new List <Choice>()
            {
                new Choice("Choice 1", "My choice 1"),
                new Choice("Choice 2", "My choice 2"),
                new Choice("Choice 3", "My choice 3"),
            };

            var choiceWindow = new MultipleChoiceWindow(choices);

            choiceWindow.ShowDialog();
        }
        /// <summary>
        /// Method to invoke when the MultipleChoiceWindow command is executed.
        /// </summary>
        private void OnMultipleChoiceWindowExecute()
        {
            // TODO: not really MVVM
            var choices = new List<Choice>()
            {
                new Choice("Choice 1", "My choice 1"),
                new Choice("Choice 2", "My choice 2"),
                new Choice("Choice 3", "My choice 3"),
            };

            var choiceWindow = new MultipleChoiceWindow(choices);
            choiceWindow.ShowDialog();
        }