示例#1
0
        private void BackToShows_Click(object sender, RoutedEventArgs e)
        {
            UIElement shopElement = TreeUI.GetElementByName("Shop");
            Grid      shopGrid    = (Grid)shopElement;

            shopGrid.Children.Clear();

            ShowList showList = new ShowList();

            shopGrid.Children.Add(showList);
        }
示例#2
0
        private void BackToPerformance_Click(object sender, RoutedEventArgs e)
        {
            UIElement shopElement = TreeUI.GetElementByName("Shop");

            Grid shopGrid = (Grid)shopElement;

            shopGrid.Children.Clear();
            PerformanceList performanceList = new PerformanceList(_performance.GetShow());

            shopGrid.Children.Add(performanceList);
        }
 private void ValidForm_Click(object sender, RoutedEventArgs e)
 {
     Result = UserFactory.Create(Login_TextBox.Text, Password_TextBox.Password, Email_TextBox.Text);
     if (!Result.Exists())
     {
         Result.Add();
         UserSingleton.GetInstance.Set(Result);
         this.DialogResult = true;
         MainWindow mainWindow = TreeUI.GetElementByName("MainWindowElement") as MainWindow;
         mainWindow.DisplayLogout();
     }
     else
     {
         ErrorLabel.Content = "This user already exists";
     }
 }