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); }
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; }
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(); }
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(); }