} //Done private void SearchBtn_Click(object sender, RoutedEventArgs e) { if (Authenticated.IndexOf("SearchTransferResturant") == -1 && Authenticated.IndexOf("CheckAllTransferResturant") == -1) { LogIn logIn = new LogIn(); logIn.ShowDialog(); } else { IsRecived = ""; NewBtn.IsEnabled = false; SearchBtn.IsEnabled = true; All_Purchase_Orders all_Purchase_Orders = new All_Purchase_Orders(this); all_Purchase_Orders.ShowDialog(); } } //Done
} //Done private void SearchBtn_Click(object sender, RoutedEventArgs e) { if (Authenticated.IndexOf("SearchPO") == -1 && Authenticated.IndexOf("CheckAllPO") == -1) { LogIn logIn = new LogIn(); logIn.ShowDialog(); } else { EnableUI(); NewBtn.IsEnabled = false; searchBtn.IsEnabled = false; SaveBtn.IsEnabled = false; All_Purchase_Orders all_Purchase_Orders = new All_Purchase_Orders(this); all_Purchase_Orders.ShowDialog(); } } //Done
} //Done private void SearchBtn_Click(object sender, RoutedEventArgs e) { if (Authenticated.IndexOf("SearchTransferKitchen") == -1 && Authenticated.IndexOf("CheckAllTransferKitchen") == -1) { LogIn logIn = new LogIn(); logIn.ShowDialog(); } else { NewBtn.IsEnabled = false; UpdateBtn.IsEnabled = false; DeleteBtn.IsEnabled = false; SearchBtn.IsEnabled = false; All_Purchase_Orders all_Purchase_Orders = new All_Purchase_Orders(this); all_Purchase_Orders.ShowDialog(); } } //Done