void ReleaseDesignerOutlets() { if (AttachPhotoButton != null) { AttachPhotoButton.Dispose(); AttachPhotoButton = null; } if (DeleteButton != null) { DeleteButton.Dispose(); DeleteButton = null; } if (DescriptionTextField != null) { DescriptionTextField.Dispose(); DescriptionTextField = null; } if (DetachPhotoButton != null) { DetachPhotoButton.Dispose(); DetachPhotoButton = null; } if (NoInternetConnection != null) { NoInternetConnection.Dispose(); NoInternetConnection = null; } if (PhotoImageView != null) { PhotoImageView.Dispose(); PhotoImageView = null; } if (SaveButton != null) { SaveButton.Dispose(); SaveButton = null; } if (StatusSwitch != null) { StatusSwitch.Dispose(); StatusSwitch = null; } if (TitleTextField != null) { TitleTextField.Dispose(); TitleTextField = null; } }
void ReleaseDesignerOutlets() { if (NoInternetConnection != null) { NoInternetConnection.Dispose(); NoInternetConnection = null; } if (TasksTable != null) { TasksTable.Dispose(); TasksTable = null; } }
public void AuthenticationQuery(string L, string P) { myLogin = L; myPassword = P; string s = RequestIssues.AuthenticationQuery(L, P); if (s == "OK") { AuthenticationPassed.Invoke(); } else if (s == "Ethernet error") { NoInternetConnection.Invoke(); } else { AuthenticationFailed.Invoke(); } }