Esempio n. 1
0
        public void ChangeAnswer()
        {
            if (answer != null)
            {
                if (question != null)
                {
                    id = string.Concat(question.Id, ";", answer.Id);
                }
                else
                {
                    id = string.Concat(
                        id.Split(';').FirstOrDefault(),
                        ";",
                        answer.Id
                        );
                }

                ViewModelReplaceWindow replaceWindow = new ViewModelReplaceWindow();
                replaceWindow.SendData(answer.Name, ConverQuestionsToList(), id);
                replaceWindow.OpenWindow(300, 200);
            }
            else
            {
                ViewModelMessageWindow message = new ViewModelMessageWindow();
                message.SendMessage("\n\nNie wybrałeś odpowiedzi!");
                message.OpenWindow(300, 200);
            }
        }
Esempio n. 2
0
        public void ChangeQuestion()
        {
            if (question != null)
            {
                id = string.Concat(question.Id, ";", 0);

                ViewModelReplaceWindow replaceWindow = new ViewModelReplaceWindow();
                replaceWindow.SendData(question.Values, ConverQuestionsToList(), id);
                replaceWindow.OpenWindow(300, 200);
            }
            else
            {
                ViewModelMessageWindow message = new ViewModelMessageWindow();
                message.SendMessage("\n\nNie wybrałeś pytania!");
                message.OpenWindow(300, 200);
            }
        }