private async void BTNSetRank_Click(object sender, RoutedEventArgs e)
 {
     if (RankID > 5)
     {
         EmployeeRank Rank = new EmployeeRank();
         Rank.PopulateDataFromLogin(username);
         Rank.ShowDialog();
         
     }
     else
     {
         var res = await this.ShowMessageAsync("Authority!!", "Rank too low to access this function");
     }
 }
Beispiel #2
0
        private async void BtnRank_Click(object sender, RoutedEventArgs e)
        {
            Notification();
            dataGrid1.Visibility = Visibility.Collapsed;

            if (RankID >= 4)
            {
                Framework.Visibility = Visibility.Visible;
                EmployeeRank mod = new EmployeeRank();
                mod.PopulateDataFromLogin(username);
                mod.ShowDialog();
            }

            else
            {
                var res = await this.ShowMessageAsync("Error", "Rank not high enough");
            }
        }