예제 #1
0
 public CalendarContents()
 {
     ActiveCampaign  = null;
     calendar        = new HarptosCalendar();
     CampaignList    = new List <Campaign>();
     GeneralNoteList = new List <Note>();
     IDManager       = new CalendarIDs();
 }
예제 #2
0
 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;
     }
 }
예제 #3
0
        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;
        }
예제 #4
0
 public Campaign(CalendarIDs IDManager)
 {
     notes          = new List <Note>();
     timers         = new List <Timer>();
     this.IDManager = IDManager;
 }
예제 #5
0
 public Campaign(string n, string t, string startDate, CalendarIDs IDManager) : this(n, t, startDate, startDate, IDManager)
 {
 }