public static bool Equals (NullableBool a, NullableBool b) {
            if(a == null || b == null) {
                return false;
            }

            return a.BoolValue == b.BoolValue && a.HasValue == b.HasValue;
        }
示例#2
0
        public static bool Equals(NullableBool a, NullableBool b)
        {
            if (a == null || b == null)
            {
                return(false);
            }

            return(a.BoolValue == b.BoolValue && a.HasValue == b.HasValue);
        }
        public BugzillaServiceEntity () {
            CreateTimer(TimerEntity.DefaultTimerIntervalMinutes);
            CreateAccept = new NullableBool();
            CloseAccept = new NullableBool();

            AssignButtonPressed = true;

            ProjectMappings = new List<BugzillaProjectMapping>();
            PriorityMappings = new List<BugzillaPriorityMapping>();
        }
示例#4
0
        public BugzillaServiceEntity()
        {
            CreateTimer(TimerEntity.DefaultTimerIntervalMinutes);
            CloseAccept = new NullableBool();

            AssignButtonPressed = true;

            ProjectMappings  = new List <BugzillaProjectMapping>();
            PriorityMappings = new List <BugzillaPriorityMapping>();
        }
示例#5
0
        public override bool Equals(object obj)
        {
            if (obj == null || GetType() != obj.GetType())
            {
                return(false);
            }

            var other = (BugzillaServiceEntity)obj;

            return(NullableBool.Equals(other.CloseAccept, CloseAccept) && string.Equals(other.CloseFieldId, CloseFieldId) &&
                   string.Equals(other.CloseFieldValue, CloseFieldValue) && string.Equals(other.CloseReassignValue, CloseReassignValue) &&
                   string.Equals(other.CloseResolveValue, CloseResolveValue) && string.Equals(other.CreateFieldId, CreateFieldId) &&
                   string.Equals(other.CreateFieldValue, CreateFieldValue) && string.Equals(other.CreateReassignValue, CreateReassignValue) &&
                   string.Equals(other.CreateResolveValue, CreateResolveValue) && string.Equals(other.LinkField, LinkField) &&
                   string.Equals(other.Password, Password) && string.Equals(other.UserName, UserName) &&
                   string.Equals(other.SearchName, SearchName) && string.Equals(other.SourceName, SourceName) &&
                   string.Equals(other.Url, Url) && string.Equals(other.UrlTemplate, UrlTemplate) &&
                   string.Equals(other.UrlTitle, UrlTitle) && NullableBool.Equals(other.IgnoreCertificate, IgnoreCertificate));
        }
示例#6
0
 public ChangesetLink()
 {
     OnMenu = new NullableBool();
 }
 public ChangesetLink() {
     OnMenu = new NullableBool();
 }