private void mi_UserList_Click(object sender, EventArgs e) { UserListForm form = new UserListForm(); form.MdiParent = this; form.Show(); }
public override void Run() { UserListForm form = new UserListForm(); IUserRepository dao = new NHibernateUserRepository(); form.UsersList += delegate { form.Users = dao.FindActive(); }; WorkbenchSingleton.AddDialog(form); }
public frm_AdminDashboard(MainForm fatherForm) { InitializeComponent(); this.userListForm = new UserListForm(this); this.questionsListForm = new QuestionsListForm(this); videoListForm = new VideosListForm(this); documentListForm = new FormDocumentManage(this); this.fatherForm = fatherForm; LoadData(); }
private void BtnAdver_Click(object sender, EventArgs e) { if (CurrentModeAdmin) { UserListForm userListForm = new UserListForm(); userListForm.ShowDialog(); } else { Process.Start("http://www.koroad.or.kr/kp_web/krNewsList.do?board_code=GABBS_060"); } }
private void CCU_Click(object sender, EventArgs e) { if (this.stateCounts == null) { return; } List <string> list = new List <string>(); foreach (KeyValuePair <string, int> keyValuePair in this.stateCounts) { list.Add(string.Format("{0} : {1}", keyValuePair.Key, keyValuePair.Value)); } UserListForm userListForm = new UserListForm(); userListForm.ListBox.BeginUpdate(); userListForm.ListBox.DataSource = list; userListForm.ListBox.EndUpdate(); userListForm.Show(); }