Пример #1
0
        private void ieopen(object sender, RoutedEventArgs e)
        {
            Window3 objWindow3 = new Window3();

            objWindow3.Show();
            this.Close();
        }
Пример #2
0
        public Window6(Window3 parent)
        {
            InitializeComponent();


            sites.AddRange(parent.user.Sites);

            ListView.ItemsSource = sites;
            this.parent          = parent;
        }
Пример #3
0
        public Window5(Window3 parent, Site site)
        {
            InitializeComponent();
            this.site = site;


            NameTextBox.Text  = site.Name;
            LoginTextBox.Text = site.Login;
            Password.Password = site.Password;
            UrlTextBox.Text   = site.Url;
            Description.Text  = site.Description;

            this.parent = parent;
        }
Пример #4
0
        public Stats(Window3 parent, int state)
        {
            InitializeComponent();
            this.state = state;
            switch (state)
            {
            case 0:
                MaterialDesignThemes.Wpf.HintAssist.SetHint(textBox, "Login");
                break;

            case 1:
                MaterialDesignThemes.Wpf.HintAssist.SetHint(textBox, "Password");
                break;
            }

            this.parent = parent;
        }
Пример #5
0
        private void timer_Tick(object sender, EventArgs e)
        {
            if (progress != 100)
            {
                ButtonProgressAssist.SetValue(LoginButton, progress);
                progress += 1;
            }
            else
            {
                (sender as DispatcherTimer).Stop();
                Window3 wind = new Window3(foundUser);

                wind.Show();

                context.SaveChanges();
                this.Close();
            }
        }
Пример #6
0
 public Window5(Window3 parent)
 {
     InitializeComponent();
     this.parent = parent;
 }