Пример #1
0
        void OnEditClick(
            TimelineEventEx obj
            )
        {
            EditEventWindow edit;

            edit = new EditEventWindow();

            edit.Tray  = timeline;
            edit.Event = obj;

            edit.Show();
        }
Пример #2
0
        private void OnAddNewEventClick(
            object sender,
            RoutedEventArgs e
            )
        {
            EditEventWindow edit;

            edit      = new EditEventWindow();
            edit.Tray = timeline;

            edit.AddNew = true;

            edit.Show();
        }
Пример #3
0
        void OnTimelineDoubleClick(
            DateTime date,
            Point point
            )
        {
            EditEventWindow edit;

            if (timeline.EditMode)
            {
                edit        = new EditEventWindow();
                edit.Tray   = timeline;
                edit.AddNew = true;

                edit.EditEvent = new TimelineEventEx()
                {
                    StartDate   = date,
                    EndDate     = date,
                    TopOverride = point.Y + timeline.EventCanvasOffset
                };

                edit.Show();
            }
        }
Пример #4
0
        void OnTimelineDoubleClick(
            DateTime                                    date,
            Point                                       point
            )
        {
            EditEventWindow                             edit;

            if (timeline.EditMode)
            {
                edit = new EditEventWindow();
                edit.Tray = timeline;
                edit.AddNew = true;

                edit.EditEvent = new TimelineEventEx()
                {
                    StartDate = date,
                    EndDate = date,
                    TopOverride = point.Y + timeline.EventCanvasOffset
                };

                edit.Show();
            }
        }
Пример #5
0
        void OnEditClick(
            TimelineEventEx                             obj
            )
        {
            EditEventWindow                             edit;

            edit = new EditEventWindow();

            edit.Tray = timeline;
            edit.Event = obj;

            edit.Show();
        }
Пример #6
0
        private void OnAddNewEventClick(
            object                                      sender,
            RoutedEventArgs                             e
            )
        {
            EditEventWindow                             edit;

            edit = new EditEventWindow();
            edit.Tray = timeline;

            edit.AddNew = true;

            edit.Show();
        }