コード例 #1
0
        public void toolStripButtonAddUserInfo_Click(object sender, EventArgs e)
        {
            FormManager formController = new FormManager(modeManagerInfo, OpenMode.Add);

            formController.ShowDialog();
            this.refreshDataGridView();
        }
コード例 #2
0
        public void toolStripButtonUpdateUserInfo_Click(object sender, EventArgs e)
        {
            if (dataGridViewWithCheckBox1.CurrentRow == null)
            {
                return;
            }

            int    selectIndex = dataGridViewWithCheckBox1.CurrentRow.Index;
            string managerName = dataGridViewWithCheckBox1["ManagerName", selectIndex].Value.ToString().Trim();

            modeManagerInfo = bllManagerInfo.GetModelList("ManagerName = '" + managerName + "'")[0];

            FormManager formController = new FormManager(modeManagerInfo, OpenMode.Update);

            formController.ShowDialog();
            this.refreshDataGridView();
        }
コード例 #3
0
 public void toolStripButtonAddUserInfo_Click(object sender, EventArgs e)
 {
     FormManager formController = new FormManager(modeManagerInfo, OpenMode.Add);
     formController.ShowDialog();
     this.refreshDataGridView();
 }
コード例 #4
0
        public void toolStripButtonUpdateUserInfo_Click(object sender, EventArgs e)
        {
            if (dataGridViewWithCheckBox1.CurrentRow == null)
                return;

            int selectIndex = dataGridViewWithCheckBox1.CurrentRow.Index;
            string managerName = dataGridViewWithCheckBox1["ManagerName", selectIndex].Value.ToString().Trim();

            modeManagerInfo = bllManagerInfo.GetModelList("ManagerName = '" + managerName + "'")[0];

            FormManager formController = new FormManager(modeManagerInfo, OpenMode.Update);
            formController.ShowDialog();
            this.refreshDataGridView();
        }