Пример #1
0
        private void treeWebsite_AfterSelect(object sender, TreeViewEventArgs e)
        {
            string      sitename = this.treeWebsite.SelectedNode.Name;
            LoginEntity entity   = new LoginEntity();

            entity = UserDataHelper.GetEntityBySiteName(sitename);
            if (entity != null)
            {
                UserName.Text = entity.USERNAME;
                Password.Text = entity.PASSWORD;
            }
        }
Пример #2
0
        private void Login_Click(object sender, EventArgs e)
        {
            if (treeWebsite.SelectedNode != null)
            {
                string sitename = this.treeWebsite.SelectedNode.Name;

                LoginEntity entity = new LoginEntity();
                entity = UserDataHelper.GetEntityBySiteName(sitename);
                CommonLogin login = new CommonLogin();
                login.Login(entity);
            }
        }
Пример #3
0
 private void ModifyItem_Click(object sender, EventArgs e)
 {
     if (treeWebsite.SelectedNode.Level != 0)
     {
         ScaleMain   parent = (ScaleMain)this.Parent.Parent;
         LoginEntity entity = UserDataHelper.GetEntityBySiteName(treeWebsite.SelectedNode.Name);
         if (entity != null)
         {
             parent.Open("NewSite", entity);
             this.Close();
         }
     }
 }