示例#1
0
 private void checkClosingState(object sender, EventArgs e)
 {
     if (IsLoggingOut == true)
     {
         //open login window after user logs out
         this.Close();
         MainWindow loginw = new MainWindow();
         if (IsLoaded == false)
         {
             IsLoggingOut = false;
             loginw.ShowDialog();
             checkClosing.Stop();
         }
     }
     if (BackToMain == true)
     {
         MainCP ac = new MainCP();
         FFhost.Navigate(ac);
         if (AccountsTable.IsAdmin() == true)
         {
             this.Title = "لوحه المدراء";
         }
         else if (AccountsTable.IsAdmin() == false)
         {
             this.Title          = "لوحه الموظفين";
             MeSe.Visibility     = Visibility.Collapsed;
             MIAddEMP.Visibility = Visibility.Collapsed;
             MILOGLOG.Visibility = Visibility.Collapsed;
             MISM.Visibility     = Visibility.Collapsed;
         }
         BackToMain = false;
     }
 }
示例#2
0
        private void MISM_Click(object sender, RoutedEventArgs e)
        {
            IsSL = true;
            SoldLogs sl = new SoldLogs();

            FFhost.Navigate(sl);
        }
示例#3
0
        private void BAR_Click(object sender, RoutedEventArgs e)
        {
            IsBR = true;
            BAR br = new BAR();

            FFhost.Navigate(br);
        }
示例#4
0
        private void MISO_Click(object sender, RoutedEventArgs e)
        {
            IsSO = true;
            Out so = new Out();

            FFhost.Navigate(so);
        }
示例#5
0
        private void MIExy_Click(object sender, RoutedEventArgs e)
        {
            IsEX = true;
            Expiration ex = new Expiration();

            FFhost.Navigate(ex);
        }
示例#6
0
        private void MIBills_Click(object sender, RoutedEventArgs e)
        {
            IsBills = true;
            Bills bl = new Bills();

            FFhost.Navigate(bl);
        }
示例#7
0
        private void MISet_Click(object sender, RoutedEventArgs e)
        {
            IsOSettings = true;
            Settings set = new Settings();

            FFhost.Navigate(set);
        }
示例#8
0
        private void MIAllMeds_Click(object sender, RoutedEventArgs e)
        {
            AllMeds am = new AllMeds();

            FFhost.Navigate(am);
        }