/// <summary> /// Touch boton login. /// </summary> /// <param name="sender"></param> partial void Touch_BtnLogin(ButtonLoad sender) { // Desactivo boton btnLogin.Enabled = false; // Muestro carga sender.ShowLoading(); // Conexion con el servidor RestManager.Connection().GetData((int)URIS.Login, new string[] { txtUser.Text.Trim(), txtPass.Text.Trim() }, null, (arg) => { // Compruebo datos if (!string.IsNullOrWhiteSpace(arg)) // Login correcto { // Compruebo id if (!arg.Equals("-1")) { LoginOk(arg); } else { LoginError(); } } else // Login incorrecto { LoginError(); } }); }
void ReleaseDesignerOutlets() { if (ButtonLoad != null) { ButtonLoad.Dispose(); ButtonLoad = null; } if (ButtonSave != null) { ButtonSave.Dispose(); ButtonSave = null; } if (ButtonSearch != null) { ButtonSearch.Dispose(); ButtonSearch = null; } if (MyMap != null) { MyMap.Dispose(); MyMap = null; } if (ProgressBar != null) { ProgressBar.Dispose(); ProgressBar = null; } if (TextFieldQuery != null) { TextFieldQuery.Dispose(); TextFieldQuery = null; } }
partial void Touch_BtnLogin(ButtonLoad sender);
void ReleaseDesignerOutlets() { if (Browser != null) { Browser.Dispose(); Browser = null; } if (ButtonAddURL != null) { ButtonAddURL.Dispose(); ButtonAddURL = null; } if (ButtonClose != null) { ButtonClose.Dispose(); ButtonClose = null; } if (ButtonCreateFolder != null) { ButtonCreateFolder.Dispose(); ButtonCreateFolder = null; } if (ButtonInsets != null) { ButtonInsets.Dispose(); ButtonInsets = null; } if (ButtonLoad != null) { ButtonLoad.Dispose(); ButtonLoad = null; } if (ButtonMenu != null) { ButtonMenu.Dispose(); ButtonMenu = null; } if (ButtonReturnOnStart != null) { ButtonReturnOnStart.Dispose(); ButtonReturnOnStart = null; } if (TableView != null) { TableView.Dispose(); TableView = null; } if (TableViewPages != null) { TableViewPages.Dispose(); TableViewPages = null; } if (TextBoxURL != null) { TextBoxURL.Dispose(); TextBoxURL = null; } if (ViewForList != null) { ViewForList.Dispose(); ViewForList = null; } if (ViewForOpenPages != null) { ViewForOpenPages.Dispose(); ViewForOpenPages = null; } }