示例#1
0
        private void AddButton_Click(object sender, EventArgs e)
        {
            UserDetailForm userDetailForm = new UserDetailForm(null);
            if (DialogResult.OK != userDetailForm.ShowDialog())
                return;

            HTTPAgent.instance().addUser(this, userDetailForm.User.userId, userDetailForm.User.role);
        }
示例#2
0
        private void DetailButton_Click(object sender, EventArgs e)
        {
            User user;
            if (DataCenter.Instance().Users.ContainsKey(UserList.SelectedItem.ToString()))
                user = DataCenter.Instance().Users[UserList.SelectedItem.ToString()];
            else
                return;

            UserDetailForm userDetailForm = new UserDetailForm(user);
            if (DialogResult.OK != userDetailForm.ShowDialog())
                return;
        }
示例#3
0
 private void ViewAnalyzerButton_Click(object sender, EventArgs e)
 {
     User user = DataCenter.Instance().Users[TaskAnalyzerList.SelectedItem.ToString()];
     UserDetailForm userDetailForm = new UserDetailForm(user);
     userDetailForm.AllowUpdate = false;
     userDetailForm.ShowDialog();
 }
示例#4
0
 private void ManagerDetailToolStripMenuItem_Click(object sender, EventArgs e)
 {
     TreeNode managerNode = WorkspaceTreeView.SelectedNode;
     User manager = DataCenter.Instance().Users[managerNode.Text];
     UserDetailForm userDetailForm = new UserDetailForm(manager);
     userDetailForm.AllowUpdate = false;
     userDetailForm.ShowDialog();
 }