private void UsersMenuItem_Click(object sender, RoutedEventArgs e) { try { this.Cursor = Cursors.Wait; ((Storyboard)this.Resources["StoryboardFadeOut"]).Begin(this); UsersWindow objUsersWindow = new UsersWindow(); objUsersWindow.Owner = this; objUsersWindow.ShowDialog(); objUsersWindow = null; ((Storyboard)this.Resources["StoryboardFadeIn"]).Begin(this); this.Cursor = Cursors.Arrow; } catch { MessageBox.Show(ErrorMessages.Default.UnhandledException, "Error", MessageBoxButton.OK, MessageBoxImage.Error); } }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.Window = ((Restaurant.UsersWindow)(target)); #line 8 "..\..\UsersWindow.xaml" this.Window.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Window_MouseLeftButtonDown); #line default #line hidden return; case 2: #line 40 "..\..\UsersWindow.xaml" ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.CloseCommand_Executed); #line default #line hidden return; case 3: this.ContentGrid = ((System.Windows.Controls.Grid)(target)); return; case 4: this.btnNewUser = ((System.Windows.Controls.Button)(target)); #line 51 "..\..\UsersWindow.xaml" this.btnNewUser.Click += new System.Windows.RoutedEventHandler(this.btnNewUser_Click); #line default #line hidden return; case 5: this.btnEdit = ((System.Windows.Controls.Button)(target)); #line 53 "..\..\UsersWindow.xaml" this.btnEdit.Click += new System.Windows.RoutedEventHandler(this.btnEdit_Click); #line default #line hidden return; case 6: this.btnDelete = ((System.Windows.Controls.Button)(target)); #line 54 "..\..\UsersWindow.xaml" this.btnDelete.Click += new System.Windows.RoutedEventHandler(this.btnDelete_Click); #line default #line hidden return; case 7: this.btnResetPassword = ((System.Windows.Controls.Button)(target)); #line 55 "..\..\UsersWindow.xaml" this.btnResetPassword.Click += new System.Windows.RoutedEventHandler(this.btnResetPassword_Click); #line default #line hidden return; case 8: this.txbBorderTitle = ((System.Windows.Controls.TextBlock)(target)); return; case 9: this.BorderAddEdit = ((System.Windows.Controls.Border)(target)); return; case 10: this.txbFullName = ((System.Windows.Controls.TextBlock)(target)); return; case 11: this.txbUsername = ((System.Windows.Controls.TextBlock)(target)); return; case 12: this.txbPassword = ((System.Windows.Controls.TextBlock)(target)); return; case 13: this.txbConfirmPassword = ((System.Windows.Controls.TextBlock)(target)); return; case 14: this.txbPermission = ((System.Windows.Controls.TextBlock)(target)); return; case 15: this.txtFullName = ((System.Windows.Controls.TextBox)(target)); return; case 16: this.txtUserName = ((System.Windows.Controls.TextBox)(target)); return; case 17: this.pbPassword = ((System.Windows.Controls.PasswordBox)(target)); return; case 18: this.pbConfirmPassword = ((System.Windows.Controls.PasswordBox)(target)); return; case 19: this.cmbPermission = ((System.Windows.Controls.ComboBox)(target)); return; case 20: this.btnSave = ((System.Windows.Controls.Button)(target)); #line 84 "..\..\UsersWindow.xaml" this.btnSave.Click += new System.Windows.RoutedEventHandler(this.btnSave_Click); #line default #line hidden return; case 21: this.btnCancel = ((System.Windows.Controls.Button)(target)); #line 85 "..\..\UsersWindow.xaml" this.btnCancel.Click += new System.Windows.RoutedEventHandler(this.btnCancel_Click); #line default #line hidden return; case 22: this.UsersGridView = ((Restaurant.SortableListView)(target)); return; } this._contentLoaded = true; }