Esempio n. 1
0
        public MainWindow()
        {
            InitializeComponent();

            // Load a new Timeline
            LoadTimeline();

            // Initialize a test category
            model.AddCategory(new Category()
            {
                BackgroundColor      = new Color(139, 201, 201),
                BackgroundColorHover = new Color(139, 201, 201) + new Color(40, 40, 40),
                TextColor            = Color.Black,
                ID            = 1,
                Name          = "Blue Category",
                PriorityLevel = 1
            });

            // Initialize a test event and a test timespan
            model.AddEvent(new EventViewModel().SetViewModel(new EventModel()
            {
                CategoryID = 1,
                Name       = "Whoa, it's an event",
                StartYear  = 20,
                Note       = "That one time when the thing was at the place"
            }));

            model.AddEvent(new EventViewModel().SetViewModel(new EventModel()
            {
                CategoryID = 1,
                Name       = "Whoa, it's a TIMESPAN",
                StartYear  = 30,
                EndYear    = 50,
                Note       = "OOOOGA       B O O G A"
            }));

            DisplayEventNoteStopwatch = new Stopwatch();
            RefreshScreenStopwatch    = new Stopwatch();
        }