public Register(string path) { filepath = path; InitializeComponent(); dateTimePicker1.Value = DateTime.Today; today_date = dateTimePicker1.Value.Date; load_data(); int igwan_count = dbhand.count_row(igwan); for (int i = 1; i <= igwan_count; i++) { comboBox1.Items.Add(dbhand.gwan(igwan, i)); } int egwan_count = dbhand.count_row(egwan); for (int i = 1; i <= egwan_count; i++) { comboBox4.Items.Add(dbhand.gwan(egwan, i)); } }
public Search(string path) //생성자 { InitializeComponent(); filepath = path; load_data(); i_week.Checked = true; e_week.Checked = true; i_viewall.Checked = true; e_viewall.Checked = true; numberofsearch(); int igwan_count = dbhand.count_row(igwan); for (int i = 1; i <= igwan_count; i++) { combo1.Items.Add(dbhand.gwan(igwan, i)); } int egwan_count = dbhand.count_row(egwan); for (int i = 1; i <= egwan_count; i++) { combo4.Items.Add(dbhand.gwan(egwan, i)); } }