private void Shifts_Click(object sender, RoutedEventArgs e)
        {
            Shifts sh = new Shifts();

            if (this.loggeduser_function.Equals("Doctor") || this.loggeduser_function.Equals("Nurse"))
            {
                sh.AddShift.IsEnabled    = false;
                sh.Refresh.IsEnabled     = false;
                sh.UpdateShift.IsEnabled = false;
                sh.DeleteShift.IsEnabled = false;
            }
            sh.Show();
        }
Esempio n. 2
0
 public UpdateShift(Shifts sh)
 {
     InitializeComponent();
     this.sh = sh;
 }