public CalendarContents() { ActiveCampaign = null; calendar = new HarptosCalendar(); CampaignList = new List <Campaign>(); GeneralNoteList = new List <Note>(); IDManager = new CalendarIDs(); }
public Campaign(string n, string t, string startDate, string currDate, CalendarIDs IDManager) { notes = new List <Note>(); timers = new List <Timer>(); name = n; tag = t; this.IDManager = IDManager; if (Note.VerifyDate(startDate)) { string msg = name + " began!"; StartingNoteID = addNote(startDate, AlertScope.AllCampaigns, msg); currentDate = currDate; } if (Note.VerifyDate(currDate)) { string msg = "Current Date"; CurrentNoteID = addNote(currentDate, AlertScope.AllCampaigns, msg); currentDate = currDate; } }
public Campaign(dynamic campaignJson, CalendarIDs IDManager) { notes = new List <Note>(); foreach (var note in campaignJson["notes"]) { Note loadedNote = new Note(note); addNote(loadedNote); } timers = new List <Timer>(); foreach (var timer in campaignJson["timers"]) { Timer loadedTimer = new Timer(timer); addTimer(loadedTimer); } Tag = campaignJson["Tag"]; Name = campaignJson["Name"]; CurrentDate = campaignJson["CurrentDate"]; this.IDManager = IDManager; }
public Campaign(CalendarIDs IDManager) { notes = new List <Note>(); timers = new List <Timer>(); this.IDManager = IDManager; }
public Campaign(string n, string t, string startDate, CalendarIDs IDManager) : this(n, t, startDate, startDate, IDManager) { }