void btn_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty((sender as Button).Text)) { return; } DailyPlan daily = new DailyPlan(new DateTime(dtpkDate.Value.Year, dtpkDate.Value.Month, Convert.ToInt32((sender as Button).Text)), Job, UserId, client); daily.ShowDialog(); }
private void BtnPLan_Click(object sender, EventArgs e) { DailyPlan dailyPlan = new DailyPlan(dateTimePicker.Value, schedules); dailyPlan.ShowDialog(); }