public BookingCreator(CalandarView _container, string _bookingID, string _dogID, string _staffID) { InitializeComponent(); BookingID = Convert.ToInt32(_bookingID).ToString(); DogID = _dogID; StaffID = _staffID; container = _container; cbxNewBookType.ItemsSource = new string[] { "Appointment", "Recurring Appointment", "Allergy Therapy" }; cbxNewBookType.SelectedIndex = 0; }
private void GrdCalander_MouseDown(object sender, MouseButtonEventArgs e) { if (calWindow is null) { calWindow = new CalandarView() { Owner = this } } ; lblContents.Content = calWindow.Content; Title = "Calendar Window"; }