Exemple #1
0
        public override bool Equals(object o)
        {
            if (!(o is JobHistory))
            {
                return(false);
            }
            JobHistory v = o as JobHistory;

            if (!Capacity.Equals(v.Capacity))
            {
                return(false);
            }
            if (!Column.Equals(v.Column))
            {
                return(false);
            }
            if (!Enabled.Equals(v.Enabled))
            {
                return(false);
            }
            if (!LastDateFrom.Equals(v.LastDateFrom))
            {
                return(false);
            }
            if (!LastDateTo.Equals(v.LastDateTo))
            {
                return(false);
            }
            if (!LastSearchText.Equals(v.LastSearchText))
            {
                return(false);
            }
            return(true);
        }
Exemple #2
0
 public void StoreValues(Data data, string path)
 {
     data.SetValue(@"" + path + @"Capacity", Capacity.ToString(System.Globalization.CultureInfo.InvariantCulture));
     data.SetValue(@"" + path + @"Column", Column.ToString());
     data.SetValue(@"" + path + @"Enabled", Enabled.ToString());
     data.SetValue(@"" + path + @"LastDateFrom", LastDateFrom.ToString("yyyy-MM-dd HH:mm:ss"));
     data.SetValue(@"" + path + @"LastDateTo", LastDateTo.ToString("yyyy-MM-dd HH:mm:ss"));
     data.SetValue(@"" + path + @"LastSearchText", Data.EscapeString(LastSearchText));
 }