예제 #1
0
 /// <summary>
 /// Creates the AddRequestForm Window and Initializes DB Param.
 /// </summary>
 public CancelAppointmentWindow(ManageEventsWindow sender, string appointment_id)
 {
     aid     = appointment_id;
     manWin  = sender;
     pmsutil = new PMSUtil();
     InitializeComponent();
 }
예제 #2
0
        public EditAppointmentWindow(ManageEventsWindow caller, string aid)
        {
            _aid    = aid;
            _caller = caller;
            InitializeComponent();
            MassType.SelectedIndex = 0;
            SelectedDate1.Text     = Appointments.app.Current_Date;
            SelectedDate2.Text     = Appointments.app.Current_Date;

            SyncTimePicker();
            GetFixedTimeSchedules();
            FetchATypes();
            FetchMassFee();
            UpdateFee2();
            FetchPriests();
            PopulateFields(aid);


            if (DateTime.Parse(SelectedDate2.Text) < DateTime.Now)
            {
                SelDateValidator2.Visibility = Visibility.Visible;
                SelDateValidator2.ToolTip    = "Notice: Selected date is already over!";
                SelDateValidator2.Foreground = Brushes.Orange;
                SelectedDate2.BorderBrush    = Brushes.Orange;
            }
        }