// FIXME: Edit and sort functionality should be moved to commands in a wrapper view model
        // of the EventTypeTimelineVM since the logic could be different depending on the view
        void OnEditProperties(EventType eventType)
        {
            EditCategoryDialog dialog = new EditCategoryDialog(Project.Model, eventType, this.Toplevel as Window);

            dialog.Run();
            dialog.Destroy();
        }
        protected virtual void OnEditProperties(EventType eventType)
        {
            EditCategoryDialog dialog = new EditCategoryDialog(project, eventType,
                                                               this.Toplevel as Window);

            dialog.Run();
            dialog.Destroy();
        }
Ejemplo n.º 3
0
        protected override void EditSelected()
        {
            EditCategoryDialog dialog = new EditCategoryDialog();

            dialog.Category     = selected[0];
            dialog.HotKeysList  = hkList;
            dialog.TransientFor = (Gtk.Window)Toplevel;
            dialog.Run();
            dialog.Destroy();
            Edited = true;
        }
Ejemplo n.º 4
0
        protected virtual void OnEditProperties(TimeNode tNode, object val)
        {
            EditCategoryDialog dialog = new EditCategoryDialog();

            dialog.Category = tNode as Category;
            dialog.Project  = project;
            dialog.Run();
            dialog.Destroy();
            if (TimeNodeChanged != null)
            {
                TimeNodeChanged(tNode, tNode.Name);
            }
        }