public override int GetHashCode() { unchecked { var hashCode = ByteField.GetHashCode(); hashCode = (hashCode * 397) ^ SByteField.GetHashCode(); hashCode = (hashCode * 397) ^ Int16Field.GetHashCode(); hashCode = (hashCode * 397) ^ UInt16Field.GetHashCode(); hashCode = (hashCode * 397) ^ Int32Field; hashCode = (hashCode * 397) ^ (int)UInt32Field; hashCode = (hashCode * 397) ^ Int64Field.GetHashCode(); hashCode = (hashCode * 397) ^ UInt64Field.GetHashCode(); hashCode = (hashCode * 397) ^ DecimalField.GetHashCode(); hashCode = (hashCode * 397) ^ SingleFiled.GetHashCode(); hashCode = (hashCode * 397) ^ DoubleField.GetHashCode(); hashCode = (hashCode * 397) ^ (StringField != null ? StringField.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (int)MyEnumField; hashCode = (hashCode * 397) ^ BooleanField.GetHashCode(); hashCode = (hashCode * 397) ^ DateTimeField.GetHashCode(); hashCode = (hashCode * 397) ^ DateTimeOffsetField.GetHashCode(); hashCode = (hashCode * 397) ^ GuidField.GetHashCode(); hashCode = (hashCode * 397) ^ TimeSpanField.GetHashCode(); hashCode = (hashCode * 397) ^ (UrlField != null ? UrlField.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (NullField != null ? NullField.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (IntArrayField != null ? IntArrayField.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (StringArrayField != null ? StringArrayField.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (EmptyArrayField != null ? EmptyArrayField.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (NullArrayField != null ? NullArrayField.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (DictionaryArrayField != null ? DictionaryArrayField.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ObjectArrayField != null ? ObjectArrayField.GetHashCode() : 0); return(hashCode); } }
void ReleaseDesignerOutlets() { if (GoButton != null) { GoButton.Dispose(); GoButton = null; } if (StopButton != null) { StopButton.Dispose(); StopButton = null; } if (UrlField != null) { UrlField.Dispose(); UrlField = null; } if (WebView != null) { WebView.Dispose(); WebView = null; } if (StatusLabel != null) { StatusLabel.Dispose(); StatusLabel = null; } }
private static UrlField RemoveTilde(this UrlField urlField) { if (!string.IsNullOrEmpty(urlField.Href)) { urlField.Href = urlField.Href.Replace("~", ""); } return(urlField); }
public void CleanTest() { var target = new UrlField(); // OK values target.Clean("http://www.example.com/"); // Bad values AssertExtras.Raises <ValidationException>(delegate() { target.Clean("blah"); }); }
private static Control CreateUrlFieldControl(SPField field, SPList list, SPListItem item, SPControlMode mode) { UrlField urlf = new UrlField(); urlf.ListId = list.ID; urlf.ItemId = item.ID; urlf.FieldName = field.Title; urlf.ID = field.Title; urlf.ControlMode = mode; return(urlf); }
void ReleaseDesignerOutlets() { if (UrlField != null) { UrlField.Dispose(); UrlField = null; } if (VersionField != null) { VersionField.Dispose(); VersionField = null; } }
private void EditSourceWindow_Load(object sender, EventArgs e) { if (source.title != null) { articalTitle.setText(source.title); } if (source.url != null) { UrlField.setText(source.url); } if (source.authorFirst != null) { authorFirst.setText(source.authorFirst); } if (source.authorMiddle != null) { authorMiddle.setText(source.authorMiddle); } if (source.authorLast != null) { authorLast.setText(source.authorLast); } if (source.day != null) { datePublishedDay.setText(source.day); } if (source.month != null) { datePublishedMonth.setText(source.month); } if (source.year != null) { datePublishedYear.setText(source.year); } if (source.publisher != null) { publisher.setText(source.publisher); } }
private void Init() { _keyField = new BaseField() { InternalName = "Key", Position = 3 }; _titleField = new BaseField() { InternalName = "Title", Position = 4 }; _assigneeField = new AssigneeField() { InternalName = "Assignee", Position = 5 }; _estimationField = new EstimationField() { InternalName = "Estimation", Position = 6, StoryPointCost = 4 }; _statusField = new BaseField() { InternalName = "Status", Position = 7 }; _dateField = new WorkDateField() { InternalName = "Work Date", Position = 9, DateFormat = "dd.MM.yyyy" }; _urlField = new UrlField() { InternalName = "Url", Position = 3, PrefixToValue = "http://" }; _userNameField = new BaseField() { InternalName = "User Name", Position = 10 }; _timeSpentField = new BaseField() { InternalName = "Time Spent", Position = 11 }; }
protected IStorageUrlField CreateEmptyUrlFieldObject(UrlField field) { var storageService = service.StorageService; return((IStorageUrlField)storageService.GetObjectFactory().CreateEmptyFieldObject(field.GetType())); }
public void UrlFieldConstructorTest() { var target = new UrlField(new Widgets.TextArea()); Assert.IsInstanceOfType(target.Widget, typeof(Widgets.TextArea)); }
public void UrlFieldConstructorTest1() { UrlField target = new UrlField(); // No error is a pass }
protected IStorageUrlField CreateEmptyUrlFieldObject(UrlField field) { var storageService = service.StorageService; return (IStorageUrlField)storageService.GetObjectFactory().CreateEmptyFieldObject(field.GetType()); }