public IEnumerable <IMenuItemViewModel> CreateMenuItems(object context)
        {
            Precondition.As <IWorkbenchViewModel>(context, nameof(context));

            yield return(new MenuItemViewModel
            {
                Header = "Import model from JSON...",
                Command = ReactiveCommand.CreateFromTask <IWorkbenchViewModel>(ImportJsonModel),
                CommandParameter = context
            });
        }
        public IEnumerable <IMenuItemViewModel> CreateMenuItems(object context)
        {
            // Ensure that context is a IWorkbenchViewModel
            Precondition.As <IWorkbenchViewModel>(context, nameof(context));

            yield return(new MenuItemViewModel
            {
                Header = "Create dummy event",
                Command = ReactiveCommand.CreateFromTask <IWorkbenchViewModel>(CreateDummyEvent),
                CommandParameter = context
            });
        }