public static Map_Form Instance() { if (aForm == null) { aForm = new Map_Form(); } return(aForm); }
public Controller(Map_Form maps) { filepath = "events.xml"; document = XDocument.Load(filepath); lle = XNamespace.Get("http://www.xyz.org/lifelogevents"); events = document.Descendants(lle + "Event"); addform = new AddForm(this); this.maps = maps; FirstLoad(); }