Beispiel #1
0
 private void bttn_login_Click(object sender, RoutedEventArgs e)
 {
     showPartial(this.grid_loader);
     ClientResponseObject cro = CommunicationController.Login(this.tbox_username.Text, this.passwordBox.Password, this.tbox_server.Text);
     if (cro.ok)
     {
         ClientResponseObject cro1 = CommunicationController.getUserInfo();
         if (cro1.ok)
         {
             CommunicationController.setCurrentlyLoggedInUser(cro1.userAccount[0]);
             if (cro1.userAccount[0].isAdmin)
             {
                 MainMenuAdministrator screen = new MainMenuAdministrator();
                 screen.Show();
                 this.Close();
             }
             else
             {
                 MainMenuCustomer screen = new MainMenuCustomer();
                 screen.Show();
                 this.Close();
             }
         }
         else
         {
             MessageBox.Show(cro.message, "Cimitero© Error ", MessageBoxButton.OK, MessageBoxImage.Hand);
             showPartial(this.grid_login);
         }
     }
     else
     {
         MessageBox.Show(cro.message, "Cimitero© Error ", MessageBoxButton.OK, MessageBoxImage.Hand);
         showPartial(this.grid_login);
     }
 }
 private void bttn_admin_view_Click(object sender, RoutedEventArgs e)
 {
     MainMenuAdministrator admin = new MainMenuAdministrator();
     admin.Show();
 }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.mainMenuAdministrator = ((Cimitero_C_Sharp_Client.MainMenuAdministrator)(target));
     return;
     case 2:
     this.image = ((System.Windows.Controls.Image)(target));
     return;
     case 3:
     this.btn_cemetry_grounds = ((System.Windows.Controls.Button)(target));
     
     #line 20 "..\..\MainMenuAdministrator.xaml"
     this.btn_cemetry_grounds.Click += new System.Windows.RoutedEventHandler(this.btn_cemetry_grounds_Click);
     
     #line default
     #line hidden
     return;
     case 4:
     this.btn_cemetry_ground_editor = ((System.Windows.Controls.Button)(target));
     
     #line 21 "..\..\MainMenuAdministrator.xaml"
     this.btn_cemetry_ground_editor.Click += new System.Windows.RoutedEventHandler(this.btn_cemetry_ground_editor_Click);
     
     #line default
     #line hidden
     return;
     case 5:
     this.bttn_Tombs = ((System.Windows.Controls.Button)(target));
     
     #line 22 "..\..\MainMenuAdministrator.xaml"
     this.bttn_Tombs.Click += new System.Windows.RoutedEventHandler(this.bttn_Tombs_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     this.bttn_bodies = ((System.Windows.Controls.Button)(target));
     
     #line 23 "..\..\MainMenuAdministrator.xaml"
     this.bttn_bodies.Click += new System.Windows.RoutedEventHandler(this.bttn_bodies_Click);
     
     #line default
     #line hidden
     return;
     case 7:
     this.bttn_logout = ((System.Windows.Controls.Button)(target));
     
     #line 24 "..\..\MainMenuAdministrator.xaml"
     this.bttn_logout.Click += new System.Windows.RoutedEventHandler(this.bttn_logout_Click);
     
     #line default
     #line hidden
     return;
     case 8:
     this.btn_cemetry = ((System.Windows.Controls.Button)(target));
     
     #line 25 "..\..\MainMenuAdministrator.xaml"
     this.btn_cemetry.Click += new System.Windows.RoutedEventHandler(this.btn_cemetry_Click);
     
     #line default
     #line hidden
     return;
     case 9:
     this.lbl_messages = ((System.Windows.Controls.Label)(target));
     return;
     case 10:
     this.newCemetry = ((System.Windows.Controls.Grid)(target));
     return;
     case 11:
     this.lbl_newCemetry = ((System.Windows.Controls.Label)(target));
     return;
     case 12:
     this.lbl_cemetry_requestText = ((System.Windows.Controls.Label)(target));
     return;
     case 13:
     this.bttn_createCemetry = ((System.Windows.Controls.Button)(target));
     
     #line 34 "..\..\MainMenuAdministrator.xaml"
     this.bttn_createCemetry.Click += new System.Windows.RoutedEventHandler(this.bttn_createCemetry_Click);
     
     #line default
     #line hidden
     return;
     case 14:
     this.lbl_cemetry_latitude = ((System.Windows.Controls.Label)(target));
     return;
     case 15:
     this.lbl_cemetry_longitude = ((System.Windows.Controls.Label)(target));
     return;
     case 16:
     this.lbl_cemetry_address = ((System.Windows.Controls.Label)(target));
     return;
     case 17:
     this.lbl_cemetry_name = ((System.Windows.Controls.Label)(target));
     return;
     case 18:
     this.tbox_cemetry_name = ((System.Windows.Controls.TextBox)(target));
     return;
     case 19:
     this.tbox_latitude = ((System.Windows.Controls.TextBox)(target));
     return;
     case 20:
     this.tbox_longitude = ((System.Windows.Controls.TextBox)(target));
     return;
     case 21:
     this.tbox_cemetry_address = ((System.Windows.Controls.TextBox)(target));
     return;
     case 22:
     this.lbl_cemetry_id = ((System.Windows.Controls.Label)(target));
     return;
     case 23:
     this.tbox_cemetry_id = ((System.Windows.Controls.TextBox)(target));
     return;
     case 24:
     this.newCemetryGround = ((System.Windows.Controls.Grid)(target));
     return;
     case 25:
     this.lbl_newCemetryGround = ((System.Windows.Controls.Label)(target));
     return;
     case 26:
     this.lbl_cemetry_requestText1 = ((System.Windows.Controls.Label)(target));
     return;
     case 27:
     this.bttn_create_cemetryGround = ((System.Windows.Controls.Button)(target));
     
     #line 72 "..\..\MainMenuAdministrator.xaml"
     this.bttn_create_cemetryGround.Click += new System.Windows.RoutedEventHandler(this.bttn_create_CemetryGround);
     
     #line default
     #line hidden
     return;
     case 28:
     this.lbl_cemetryGround_address = ((System.Windows.Controls.Label)(target));
     return;
     case 29:
     this.lbl_cemetryGround_name = ((System.Windows.Controls.Label)(target));
     return;
     case 30:
     this.tbox_cemetryGroundName = ((System.Windows.Controls.TextBox)(target));
     return;
     case 31:
     this.tbox_cemetryGroundAddress = ((System.Windows.Controls.TextBox)(target));
     return;
     case 32:
     this.lbl_cemetryGround_id = ((System.Windows.Controls.Label)(target));
     return;
     case 33:
     this.tbox_cemetryGround_id = ((System.Windows.Controls.TextBox)(target));
     return;
     case 34:
     this.newTomb = ((System.Windows.Controls.Grid)(target));
     return;
     case 35:
     this.lbl_newTomb = ((System.Windows.Controls.Label)(target));
     return;
     case 36:
     this.lbl_newTomb_text = ((System.Windows.Controls.Label)(target));
     return;
     case 37:
     this.bttnCreate_Tomb = ((System.Windows.Controls.Button)(target));
     
     #line 87 "..\..\MainMenuAdministrator.xaml"
     this.bttnCreate_Tomb.Click += new System.Windows.RoutedEventHandler(this.bttn_create_Tomb);
     
     #line default
     #line hidden
     return;
     case 38:
     this.lbl_TombNumber = ((System.Windows.Controls.Label)(target));
     return;
     case 39:
     this.tbox_TombNumber = ((System.Windows.Controls.TextBox)(target));
     return;
     case 40:
     this.lbl_tomb_id = ((System.Windows.Controls.Label)(target));
     return;
     case 41:
     this.tbox_tomb_id = ((System.Windows.Controls.TextBox)(target));
     return;
     case 42:
     this.cemetries = ((System.Windows.Controls.Grid)(target));
     return;
     case 43:
     this.lbl_cemetries = ((System.Windows.Controls.Label)(target));
     return;
     case 44:
     this.datagrid_Cemetries = ((System.Windows.Controls.DataGrid)(target));
     
     #line 99 "..\..\MainMenuAdministrator.xaml"
     this.datagrid_Cemetries.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.datagrid_Cemetries_SelectionChanged);
     
     #line default
     #line hidden
     
     #line 99 "..\..\MainMenuAdministrator.xaml"
     this.datagrid_Cemetries.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.datagrid_Cemetries_MouseDoubleClick);
     
     #line default
     #line hidden
     return;
     case 45:
     this.bttn_addCemetry = ((System.Windows.Controls.Button)(target));
     
     #line 108 "..\..\MainMenuAdministrator.xaml"
     this.bttn_addCemetry.Click += new System.Windows.RoutedEventHandler(this.bttn_addCemetry_Click);
     
     #line default
     #line hidden
     return;
     case 46:
     this.cemetryGrounds = ((System.Windows.Controls.Grid)(target));
     return;
     case 47:
     this.lbl_cemetryGrounds = ((System.Windows.Controls.Label)(target));
     return;
     case 48:
     this.datagrid_CemetryGrounds = ((System.Windows.Controls.DataGrid)(target));
     
     #line 116 "..\..\MainMenuAdministrator.xaml"
     this.datagrid_CemetryGrounds.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.datagrid_CemetryGrounds_SelectionChanged);
     
     #line default
     #line hidden
     
     #line 116 "..\..\MainMenuAdministrator.xaml"
     this.datagrid_CemetryGrounds.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.datagrid_CemetryGrounds_MouseDoubleClick);
     
     #line default
     #line hidden
     return;
     case 49:
     this.bttn_addCemtryGround = ((System.Windows.Controls.Button)(target));
     
     #line 123 "..\..\MainMenuAdministrator.xaml"
     this.bttn_addCemtryGround.Click += new System.Windows.RoutedEventHandler(this.bttn_addCemtryGround_Click);
     
     #line default
     #line hidden
     return;
     case 50:
     this.tombs = ((System.Windows.Controls.Grid)(target));
     return;
     case 51:
     this.lbl_Tombs = ((System.Windows.Controls.Label)(target));
     return;
     case 52:
     this.datagrid_Tombs = ((System.Windows.Controls.DataGrid)(target));
     
     #line 131 "..\..\MainMenuAdministrator.xaml"
     this.datagrid_Tombs.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.datagrid_Tombs_MouseDoubleClick);
     
     #line default
     #line hidden
     return;
     case 53:
     this.bttn_AddTomb = ((System.Windows.Controls.Button)(target));
     
     #line 137 "..\..\MainMenuAdministrator.xaml"
     this.bttn_AddTomb.Click += new System.Windows.RoutedEventHandler(this.bttn_AddTomb_Click);
     
     #line default
     #line hidden
     return;
     case 54:
     this.bodies = ((System.Windows.Controls.Grid)(target));
     return;
     case 55:
     this.lbl_bodies = ((System.Windows.Controls.Label)(target));
     return;
     case 56:
     this.datagrid_bodies = ((System.Windows.Controls.DataGrid)(target));
     
     #line 145 "..\..\MainMenuAdministrator.xaml"
     this.datagrid_bodies.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.datagrid_Bodies_MouseDoubleClick);
     
     #line default
     #line hidden
     return;
     case 57:
     this.bttn_AddBody = ((System.Windows.Controls.Button)(target));
     
     #line 156 "..\..\MainMenuAdministrator.xaml"
     this.bttn_AddBody.Click += new System.Windows.RoutedEventHandler(this.bttn_AddBody_Click);
     
     #line default
     #line hidden
     return;
     case 58:
     this.startPane = ((System.Windows.Controls.Grid)(target));
     return;
     case 59:
     this.bttn_requests = ((System.Windows.Controls.Button)(target));
     
     #line 164 "..\..\MainMenuAdministrator.xaml"
     this.bttn_requests.Click += new System.Windows.RoutedEventHandler(this.bttn_Requests_Click);
     
     #line default
     #line hidden
     return;
     case 60:
     this.requests = ((System.Windows.Controls.Grid)(target));
     return;
     case 61:
     this.lbl_requests = ((System.Windows.Controls.Label)(target));
     return;
     case 62:
     this.datagrid_requests = ((System.Windows.Controls.DataGrid)(target));
     return;
     case 63:
     this.bttn_changeRequest = ((System.Windows.Controls.Button)(target));
     
     #line 172 "..\..\MainMenuAdministrator.xaml"
     this.bttn_changeRequest.Click += new System.Windows.RoutedEventHandler(this.bttn_ChangeRequest_Click);
     
     #line default
     #line hidden
     return;
     case 64:
     this.tombDetail = ((System.Windows.Controls.Grid)(target));
     return;
     case 65:
     this.lblRechnungen = ((System.Windows.Controls.Label)(target));
     return;
     case 66:
     this.table_Bills1 = ((System.Windows.Controls.DataGrid)(target));
     
     #line 179 "..\..\MainMenuAdministrator.xaml"
     this.table_Bills1.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.datagrid_invoices_MouseDoubleClick);
     
     #line default
     #line hidden
     return;
     case 67:
     this.table_bodies = ((System.Windows.Controls.DataGrid)(target));
     return;
     case 68:
     this.lblDeadBodies = ((System.Windows.Controls.Label)(target));
     return;
     case 69:
     this.lblTombLabel = ((System.Windows.Controls.Label)(target));
     return;
     case 70:
     this.lbl_title = ((System.Windows.Controls.Label)(target));
     return;
     case 71:
     this.lbl_address = ((System.Windows.Controls.Label)(target));
     return;
     case 72:
     this.lbl_telephone = ((System.Windows.Controls.Label)(target));
     return;
     case 73:
     this.lbl_birthdate = ((System.Windows.Controls.Label)(target));
     return;
     case 74:
     this.bttn_tombdetail_newbill = ((System.Windows.Controls.Button)(target));
     
     #line 195 "..\..\MainMenuAdministrator.xaml"
     this.bttn_tombdetail_newbill.Click += new System.Windows.RoutedEventHandler(this.bttn_tombdetail_newbill_Click);
     
     #line default
     #line hidden
     return;
     case 75:
     this.bttn_tombdetail_changeowner = ((System.Windows.Controls.Button)(target));
     
     #line 196 "..\..\MainMenuAdministrator.xaml"
     this.bttn_tombdetail_changeowner.Click += new System.Windows.RoutedEventHandler(this.bttn_tombdetail_changeowner_Click);
     
     #line default
     #line hidden
     return;
     case 76:
     this.bttn_show_tomb_in_editor = ((System.Windows.Controls.Button)(target));
     
     #line 197 "..\..\MainMenuAdministrator.xaml"
     this.bttn_show_tomb_in_editor.Click += new System.Windows.RoutedEventHandler(this.bttn_show_tomb_in_editor_Click);
     
     #line default
     #line hidden
     return;
     case 77:
     this.lblSelectedCemetry = ((System.Windows.Controls.Label)(target));
     return;
     case 78:
     this.lblCemetryGround = ((System.Windows.Controls.Label)(target));
     return;
     case 79:
     this.lblLoggedInAs = ((System.Windows.Controls.Label)(target));
     return;
     case 80:
     this.newBody = ((System.Windows.Controls.Grid)(target));
     return;
     case 81:
     this.lbl_newBody = ((System.Windows.Controls.Label)(target));
     return;
     case 82:
     this.lbl_cemetry_requestText2 = ((System.Windows.Controls.Label)(target));
     return;
     case 83:
     this.bttn_create_body = ((System.Windows.Controls.Button)(target));
     
     #line 218 "..\..\MainMenuAdministrator.xaml"
     this.bttn_create_body.Click += new System.Windows.RoutedEventHandler(this.bttn_createBody_Click);
     
     #line default
     #line hidden
     return;
     case 84:
     this.lbl_cemetry_latitude1 = ((System.Windows.Controls.Label)(target));
     return;
     case 85:
     this.lbl_cemetry_longitude1 = ((System.Windows.Controls.Label)(target));
     return;
     case 86:
     this.lbl_cemetry_address1 = ((System.Windows.Controls.Label)(target));
     return;
     case 87:
     this.lbl_new_body_firstname = ((System.Windows.Controls.Label)(target));
     return;
     case 88:
     this.tbox_new_body_firstname = ((System.Windows.Controls.TextBox)(target));
     return;
     case 89:
     this.tbox_new_body_phonenumber = ((System.Windows.Controls.TextBox)(target));
     return;
     case 90:
     this.tbox_new_body_address = ((System.Windows.Controls.TextBox)(target));
     return;
     case 91:
     this.tbox_new_body_lastname = ((System.Windows.Controls.TextBox)(target));
     return;
     case 92:
     this.lbl_cemetry_id1 = ((System.Windows.Controls.Label)(target));
     return;
     case 93:
     this.tbox_bodyid = ((System.Windows.Controls.TextBox)(target));
     return;
     case 94:
     this.tbox_new_body_otherfirstname = ((System.Windows.Controls.TextBox)(target));
     return;
     case 95:
     this.lbl_newbody_title = ((System.Windows.Controls.Label)(target));
     return;
     case 96:
     this.tbox_new_body_title = ((System.Windows.Controls.TextBox)(target));
     return;
     case 97:
     this.lbl_cemetry_latitude1_Copy = ((System.Windows.Controls.Label)(target));
     return;
     case 98:
     this.lbl_cemetry_latitude1_Copy1 = ((System.Windows.Controls.Label)(target));
     return;
     case 99:
     this.tbox_new_body_birthdate = ((System.Windows.Controls.DatePicker)(target));
     return;
     case 100:
     this.tbox_new_body_dateofdeath = ((System.Windows.Controls.DatePicker)(target));
     return;
     case 101:
     this.cbox_new_body_tombnumber = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 102:
     this.tombInvoice = ((System.Windows.Controls.Grid)(target));
     return;
     case 103:
     this.lblNewBill = ((System.Windows.Controls.Label)(target));
     return;
     case 104:
     this.bttn_tomb_invoice_save = ((System.Windows.Controls.Button)(target));
     
     #line 280 "..\..\MainMenuAdministrator.xaml"
     this.bttn_tomb_invoice_save.Click += new System.Windows.RoutedEventHandler(this.bttn_tomb_invoice_save_Click);
     
     #line default
     #line hidden
     return;
     case 105:
     this.lbl_invoiceid = ((System.Windows.Controls.Label)(target));
     return;
     case 106:
     this.lbl_invoiceDate = ((System.Windows.Controls.Label)(target));
     return;
     case 107:
     this.lbl_paymentDate = ((System.Windows.Controls.Label)(target));
     return;
     case 108:
     this.lbl_invoicenumber = ((System.Windows.Controls.Label)(target));
     return;
     case 109:
     this.lbl_invoicetotal = ((System.Windows.Controls.Label)(target));
     return;
     case 110:
     this.lbl_tombId = ((System.Windows.Controls.Label)(target));
     return;
     case 111:
     this.tb_paymentdate = ((System.Windows.Controls.DatePicker)(target));
     return;
     case 112:
     this.tb_invoicedate = ((System.Windows.Controls.DatePicker)(target));
     return;
     case 113:
     this.cbox_invoice_tombid = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 114:
     this.tb_newbill_invoiceid = ((System.Windows.Controls.TextBox)(target));
     return;
     case 115:
     this.tb_newbill_invoicenumber = ((System.Windows.Controls.TextBox)(target));
     return;
     case 116:
     this.tb_newbill_invoiceamount = ((System.Windows.Controls.TextBox)(target));
     return;
     case 117:
     this.tb_newbill_invoicecurrency = ((System.Windows.Controls.TextBox)(target));
     return;
     case 118:
     this.tomb_change_owner = ((System.Windows.Controls.Grid)(target));
     return;
     case 119:
     this.lbl_changeowner = ((System.Windows.Controls.Label)(target));
     return;
     case 120:
     this.bttn_save_owner_change = ((System.Windows.Controls.Button)(target));
     
     #line 301 "..\..\MainMenuAdministrator.xaml"
     this.bttn_save_owner_change.Click += new System.Windows.RoutedEventHandler(this.bttn_save_owner_change_Click);
     
     #line default
     #line hidden
     return;
     case 121:
     this.lbl_owner = ((System.Windows.Controls.Label)(target));
     return;
     case 122:
     this.cbox_invoice_tombid1 = ((System.Windows.Controls.ComboBox)(target));
     return;
     }
     this._contentLoaded = true;
 }