// "ADD" button click Event. private void button_addSch_Click(object sender, EventArgs e) { addForm = new DataAddForm(label_DateTemp, this, false); addForm.gboxSetting(gbox[gbox_index]); addForm.setDbConnect(dbConnect); addForm.Show(); }
private void AddButtonClickProcess(bool isCalendar) { if (isCalendar) { addForm = new DataAddForm(label_DateTemp, this, connect[0], false); addForm.Show(); } else { addForm_today = new TodayDataAddForm(this, connect[1], true); addForm_today.Show(); } }
// "Modify" button click Event. private void button_modifySch_Click(object sender, EventArgs e) { string[] datalist = new string[2]; string text = listView_Schedule.SelectedItems[0].SubItems[1].Text.ToString(); bool actCheck = listView_Schedule.SelectedItems[0].SubItems[2].Text == "Y" ? true : false; datalist = listView_Schedule.SelectedItems[0].SubItems[0].Text.Split(':'); addForm = new DataAddForm(label_DateTemp, this, true); addForm.gboxSetting(gbox[gbox_index]); addForm.setDbConnect(dbConnect); addForm.setSelectData(datalist, text, actCheck); addForm.Show(); }
private void ModifyButtonClickProcess(bool isCalendar) { if (isCalendar) { bool actCheck = listView_Schedule.SelectedItems[0].SubItems[2].Text == "Y" ? true : false; string text = listView_Schedule.SelectedItems[0].SubItems[1].Text.ToString(); string[] datalist = listView_Schedule.SelectedItems[0].SubItems[0].Text.Split(':'); addForm = new DataAddForm(label_DateTemp, this, connect[0], true); addForm.SetSelectData(datalist, text, actCheck); addForm.Show(); } else { addForm_today = new TodayDataAddForm(this, connect[1], false); addForm_today.Text = "TodayDataAddForm(Modify)"; addForm_today.PastDataSet(listView_todayList.SelectedItems[0].Text.ToString().Split(':'), listView_todayList.SelectedItems[0].SubItems[1].Text); addForm_today.Show(); } }