private void constate(bool value)
        {
            Action action = () =>
            {
                switch (value)
                {
                case (true):
                    MessageBox.Show(Registry_Class.DS + " - " + Registry_Class.IC);
                    vhod.Pass.IsEnabled  = true;
                    vhod.Login.IsEnabled = true;
                    vhod.Auth.IsEnabled  = true;
                    vhod.Vk.IsEnabled    = true;
                    vhod.Reg.IsEnabled   = true;
                    break;

                case (false):
                    ConfCon conection = new ConfCon();
                    conection.Show();
                    this.Hide();
                    break;
                }
            };

            Dispatcher.Invoke(action);
        }
        private void ListView_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            int indexMainMenu = ListViewMenu.SelectedIndex;

            switch (indexMainMenu)
            {
            case 0:
                GridAvtor.Children.Clear();
                GridAvtor.Children.Add(new Account());
                break;

            case 1:
                GridAvtor.Children.Clear();
                GridAvtor.Children.Add(new Flight());
                EqpColor.SelectedColor(((SolidColorBrush)StackPanelMenu.Background).Color);
                break;

            case 2:
                GridAvtor.Children.Clear();
                GridAvtor.Children.Add(new Equipment());
                EqpColor.SelectedColor(((SolidColorBrush)StackPanelMenu.Background).Color);
                break;

            case 3:
                GridAvtor.Children.Clear();
                GridAvtor.Children.Add(new Personal());
                EqpColor.SelectedColor(((SolidColorBrush)StackPanelMenu.Background).Color);
                break;

            case 4:
                ConfCon conf = new ConfCon();
                conf.Show();
                conf.TopMost = true;
                break;
            }
        }