示例#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;
 }