76 lines
3.0 KiB
C#
76 lines
3.0 KiB
C#
using MVPLearning.Structure;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace MVPLearning.RecordKeeping.SermonFiler
|
|
{
|
|
public class MaintainSermonFilerModel : ObservableObject
|
|
{
|
|
public int Seid { get; set; }
|
|
public string Title { get => _title; set => SetProperty(ref _title, value); }
|
|
private string _title = string.Empty;
|
|
public string Scripture { get => _scripture; set => SetProperty(ref _scripture, value); }
|
|
private string _scripture = string.Empty;
|
|
public DateTime? When { get => _when; set => SetProperty(ref _when, value); }
|
|
private DateTime? _when;
|
|
public string Subject { get => _subject; set => SetProperty(ref _subject, value); }
|
|
private string _subject = string.Empty;
|
|
public string Minister { get => _minister; set => SetProperty(ref _minister, value); }
|
|
private string _minister = string.Empty;
|
|
public string Where { get => _where; set => SetProperty(ref _where, value); }
|
|
private string _where = string.Empty;
|
|
public string Ref_No { get => _ref_No; set => SetProperty(ref _where, value); }
|
|
#pragma warning disable IDE0044 // Add readonly modifier
|
|
private string _ref_No = string.Empty;
|
|
#pragma warning restore IDE0044 // Add readonly modifier
|
|
public string Notes { get => _notes; set => SetProperty(ref _notes, value); }
|
|
private string _notes = string.Empty;
|
|
public string Filename { get => _filename; set => SetProperty(ref _filename, value); }
|
|
private string _filename = string.Empty;
|
|
public string Web { get => _web; set => SetProperty(ref _web, value); }
|
|
private string _web = string.Empty;
|
|
|
|
public override bool Equals(object? obj)
|
|
{
|
|
return Equals(obj as MaintainSermonFilerModel);
|
|
}
|
|
|
|
public bool Equals(MaintainSermonFilerModel? other)
|
|
{
|
|
return other is not null &&
|
|
Seid == other.Seid &&
|
|
Title == other.Title &&
|
|
Scripture == other.Scripture &&
|
|
When == other.When &&
|
|
Subject == other.Subject &&
|
|
Minister == other.Minister &&
|
|
Where == other.Where &&
|
|
Ref_No == other.Ref_No &&
|
|
Notes == other.Notes &&
|
|
Filename == other.Filename &&
|
|
Web == other.Web;
|
|
}
|
|
|
|
public override int GetHashCode()
|
|
{
|
|
//HashCode hash = new();
|
|
//hash.Add(Seid);
|
|
//hash.Add(Title);
|
|
//hash.Add(Scripture);
|
|
//hash.Add(When);
|
|
//hash.Add(Subject);
|
|
//hash.Add(Minister);
|
|
//hash.Add(Where);
|
|
//hash.Add(Ref_No);
|
|
//hash.Add(Notes);
|
|
//hash.Add(Filename);
|
|
//hash.Add(Web);
|
|
//return hash.ToHashCode();
|
|
return base.GetHashCode();
|
|
}
|
|
}
|
|
}
|