Ejemplo n.º 1
0
        private void dgView1_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex == -1)
            {
                return;
            }
            FormSetting form = new FormSetting {
                Year = this.Year, Month = this.Month, Person = dgView.SelectedRows[0].Cells[0].Value as StandbyList.Person, StandbyLists = Core.StandbyLists
            };

            form.ShowDialog();
        }
Ejemplo n.º 2
0
        private void btnAddMember_Click(object sender, EventArgs e)
        {
            FormSetting form = new FormSetting {
                Year = Date.Year, Month = Date.Month, Person = new StandbyList.Person()
            };

            if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                tmppersons.Add(form.Person);
                RefreshDGV();
            }
        }
Ejemplo n.º 3
0
        private void ShowEditForm()
        {
            if (dgView.SelectedRows.Count == 0)
            {
                return;
            }
            FormSetting form = new FormSetting {
                Year = Date.Year, Month = Date.Month, Person = dgView.SelectedRows[0].Cells[0].Value as StandbyList.Person
            };

            if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                int i = dgView.SelectedRows[0].Index;
                RefreshDGV();
                dgView.Rows[i].Selected = true;
            }
        }
Ejemplo n.º 4
0
        private void iconSetting_Click(object sender, EventArgs e)
        {
            FormSetting setting = new FormSetting();

            setting.ShowDialog();
        }