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

            if (!Enabled.Equals(v.Enabled))
            {
                return(false);
            }
            if (!File.Equals(v.File))
            {
                return(false);
            }
            if (!OnAttachment.Equals(v.OnAttachment))
            {
                return(false);
            }
            if (!OnCover.Equals(v.OnCover))
            {
                return(false);
            }
            if (!Repetition.Equals(v.Repetition))
            {
                return(false);
            }

            return(true);
        }
Exemple #2
0
 public void StoreValues(Data data, string path)
 {
     data.SetValue(@"" + path + @"Enabled", Enabled.ToString());
     data.SetValue(@"" + path + @"File", Data.EscapeString(File));
     data.SetValue(@"" + path + @"OnAttachment", OnAttachment.ToString());
     data.SetValue(@"" + path + @"OnCover", OnCover.ToString());
     data.SetValue(@"" + path + @"Repetition", Repetition.ToString());
 }
Exemple #3
0
 public void StoreValues(Data data, string path)
 {
     data.SetValue(@"" + path + @"Enabled", Enabled.ToString());
     data.SetValue(@"" + path + @"File", Data.EscapeString(File));
     data.SetValue(@"" + path + @"FitToPage", FitToPage.ToString());
     data.SetValue(@"" + path + @"OnAttachment", OnAttachment.ToString());
     data.SetValue(@"" + path + @"OnCover", OnCover.ToString());
     data.SetValue(@"" + path + @"Opacity", Opacity.ToString(System.Globalization.CultureInfo.InvariantCulture));
     data.SetValue(@"" + path + @"Repetition", Repetition.ToString());
 }
Exemple #4
0
        public override string ToString()
        {
            StringBuilder sb = new StringBuilder();

            sb.AppendLine("Enabled=" + Enabled.ToString());
            sb.AppendLine("File=" + File.ToString());
            sb.AppendLine("OnAttachment=" + OnAttachment.ToString());
            sb.AppendLine("OnCover=" + OnCover.ToString());
            sb.AppendLine("Repetition=" + Repetition.ToString());

            return(sb.ToString());
        }