using System; using System.Windows; using BS.Shared; using BS.Shared.Core; namespace BeWo.Scheduler.View { public partial class SchedulerStartControl { public event EventHandler> StartScheduler; public SchedulerStartControl() { InitializeComponent(); } private void ShowResourcesButton_Click(object sender, RoutedEventArgs e) { if (StartScheduler != null) StartScheduler(this, new EventArgs(AppointmentKind.Resource)); } private void ShowEmployeeAbsenceTimes_Click(object sender, RoutedEventArgs e) { if (StartScheduler != null) StartScheduler(this, new EventArgs(AppointmentKind.Employee)); } private void ShowClientAppointmentButton_Click(object sender, RoutedEventArgs e) { if (StartScheduler != null) StartScheduler(this, new EventArgs(AppointmentKind.Customer)); } private void ShowCommonCalendarButton_Click(object sender, RoutedEventArgs e) { if (StartScheduler != null) StartScheduler(this, new EventArgs(AppointmentKind.CommonCalendar)); } } }