示例#1
0
        private void RemovetoolStripMenuItem_Click(object sender, EventArgs e)
        {
            var selectedItem = (RadishWorkflow)WorkflowobjectListView.SelectedObject;

            if (selectedItem != null)
            {
                RadishController.Get().Configuration.Workflows.Remove(selectedItem);
                WorkflowobjectListView.SetObjects(RadishController.Get().Configuration.Workflows);
            }
        }
示例#2
0
        private void AddtoolStripMenuItem_Click(object sender, EventArgs e)
        {
            var newworkflow = new RadishWorkflow("New Workflow");

            RadishController.Get().Configuration.Workflows.Add(newworkflow);
            WorkflowobjectListView.SetObjects(RadishController.Get().Configuration.Workflows);

            WorkflowobjectListView.SelectedObject = newworkflow;
            viewModel.CurrentWorkflow             = newworkflow;
            PropertyGrid.SelectedObject           = newworkflow;
        }
示例#3
0
        public frmRadish()
        {
            // initialize Viewmodel
            viewModel = MockKernel.Get().GetRadishVM() as RadishViewModel;
            if (viewModel.IsCorrupt)
            {
                this.Close();
            }

            InitializeComponent();
            ApplyCustomTheme();

            // Set control objects
            WorkflowobjectListView.SetObjects(RadishController.Get().Configuration.Workflows);

            PropertyGrid.SelectedObject         = viewModel.CurrentWorkflow;
            PropertyGridSettings.SelectedObject = RadishController.GetConfig();
        }