Exemplo n.º 1
0
 private void btnShowTimes_Click(object sender, RoutedEventArgs e)
 {
     if (!wpCurrentContent.Children.Contains(uctShowtimes) && !winLogin.loginAdmin)
     {
         wpCurrentContent.Children.Clear();
         wpCurrentContent.Children.Add(uctShowtimes = new uctShowtimes());
     }
     else if (!wpCurrentContent.Children.Contains(uctAdmin) && winLogin.loginAdmin)
     {
         wpCurrentContent.Children.Clear();
         wpCurrentContent.Children.Add(uctAdmin = new uctAdmin());
     }
 }
Exemplo n.º 2
0
 private void LoadMainUct(bool isAdmin)
 {
     if (!isAdmin)
     {
         // Open showtimes on startup
         uctShowtimes = new uctShowtimes();
         wpCurrentContent.Children.Add(uctShowtimes);
     }
     else
     {
         uctAdmin = new uctAdmin();
         wpCurrentContent.Children.Add(uctAdmin);
     }
 }