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(); } }
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(); } }
// "ADD" button click Event. (Today) private void Button_today_add_Click(object sender, EventArgs e) { addForm_today = new TodayDataAddForm(this); addForm_today.setDbConnect(dbConnect2); addForm_today.Show(); }