public Scheduler()
 {
     InitializeComponent();
     googleCalendar = new GoogleCalendar();
     apt = googleCalendar.createAppointment();
     database = new Database();
     DataContext = apt;
 }
Example #2
0
        public static Database getInstance()
        {
            if (db == null)
            {
                db = new Database();
            }

            return db;
        }
 public DoctorPanel()
 {
     InitializeComponent();
     database = new Database();
     visits = new List<Visit>();
     paths = database.searchFolder("open");
     for (int i = 0; i < paths.Count; i++)
     {
         visits.Add(database.xmlToVisit(paths[i]));
     }
     DataContext = visits; 
 }