Esempio n. 1
0
        public TourViewModel()
        {
            CreateTourCommand = new DelegateCommand <string[]>(str =>
            {
                if ((str[0] != "") && (str[1] != "") && (str[2] != "") && (str[3] != "") && (str[4] != "") && (str[5] != ""))
                {
                    TourModel.CreatePersonalTicket(str[0], str[1], str[2], str[3], str[4], Convert.ToInt32(str[5]));
                    EnterModel.Close_Tour_Window();
                }
                else
                {
                    MessageBox.Show("Вы заполнили не все поля!");
                }
            });

            AvailableCounties = TourModel.AddItemsToComboBox("Country");
        }