private void highQualityButton2_Unchecked(object sender, RoutedEventArgs e)
        {
            switch (((ToggleButton)sender).Name)
            {
            case "highQualityButton2":
            {
                watchPriceValue.Text = (Convert.ToDouble(watchPriceValue.Text) - ServicesModel.FindPriceByName("Высокое качество")).ToString();
                break;
            }

            case "highSoundButton2":
            {
                watchPriceValue.Text = (Convert.ToDouble(watchPriceValue.Text) - ServicesModel.FindPriceByName("Качественный звук")).ToString();
                break;
            }

            case "allDevicesButton2":
            {
                watchPriceValue.Text = (Convert.ToDouble(watchPriceValue.Text) - ServicesModel.FindPriceByName("Разные устройства")).ToString();
                break;
            }

            case "noAdvertizingButton2":
            {
                watchPriceValue.Text = (Convert.ToDouble(watchPriceValue.Text) - ServicesModel.FindPriceByName("Без рекламы")).ToString();
                break;
            }

            case "allLanguagesButton2":
            {
                watchPriceValue.Text = (Convert.ToDouble(watchPriceValue.Text) - ServicesModel.FindPriceByName("Язык оригинала")).ToString();
                break;
            }
            }
        }
        public MainWindow()
        {
            InitializeComponent();

            movieView        = new MovieView(videoStore);
            libraryView      = new LibraryView(videoStore);
            subscriptionPage = new SubscriptionPage(videoStore);
            helpPage         = new HelpPage();

            var sr = videoStore.Services.ToList();

            for (int i = 0; i < sr.Count; i++)
            {
                ServicesModel.addSerice(i, sr[i].ServiceName, sr[i].Price);
            }

            navigateFrame.Navigate(movieView);
            loginNameTextBox.Focus();

            menuList.SelectedIndex = 0;

            AppUpdate.ShowLoginDialog += LoginDialogOpen;
            AppUpdate.ChangeCash      += ChangeCash;
            AppUpdate.ShowLibrary     += ShowUserLibrary;
            AppUpdate.UpdateCash      += UpdateCash;
        }