Ejemplo n.º 1
0
        private void mi_UserList_Click(object sender, EventArgs e)
        {
            UserListForm form = new UserListForm();

            form.MdiParent = this;
            form.Show();
        }
Ejemplo n.º 2
0
        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();
 }
Ejemplo n.º 4
0
 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");
     }
 }
Ejemplo n.º 5
0
        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();
        }