protected override void OnViewChanged(DesignerView view)
        {
            base.OnViewChanged(view);

            ActivityDesigner hostedDesigner = (ActiveView != null) ? ActiveView.AssociatedDesigner : null;

            if (hostedDesigner.Activity is FaultHandlersActivity)
            {
                Header.Text = DR.GetString(DR.WorkflowExceptions);
                HelpText    = String.Empty;
            }
            else if (hostedDesigner.Activity is EventHandlersActivity)
            {
                Header.Text = DR.GetString(DR.WorkflowEvents);
                HelpText    = String.Empty;
            }
            else if (hostedDesigner.Activity is CompensationHandlerActivity)
            {
                Header.Text = DR.GetString(DR.WorkflowCompensation);
                HelpText    = String.Empty;
            }
            else if (hostedDesigner.Activity is CancellationHandlerActivity)
            {
                Header.Text = DR.GetString(DR.WorkflowCancellation);
                HelpText    = String.Empty;
            }
            else
            {
                Header.Text = DR.GetString(DR.StartSequentialWorkflow);
                HelpText    = DR.GetString(DR.SequentialWorkflowHelpText);
            }
        }
        protected override void Initialize(Activity activity)
        {
            base.Initialize(activity);

            HelpText    = DR.GetString(DR.SequentialWorkflowHelpText);
            Header.Text = DR.GetString(DR.StartSequentialWorkflow);
        }
Esempio n. 3
0
        protected override void Initialize(Activity activity)
        {
            base.Initialize(activity);

            HelpText    = DR.GetString(DR.DropEventsHere);
            ShowPreview = false;
        }
        public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value)
        {
            OpenFileDialog dialog = new OpenFileDialog {
                AddExtension    = true,
                DefaultExt      = "*.wtm",
                CheckFileExists = true,
                Filter          = DR.GetString("ImageFileFilter")
            };

            if (dialog.ShowDialog() == DialogResult.OK)
            {
                return(dialog.FileName);
            }
            return(value);
        }
        protected override void Initialize(Activity activity)
        {
            base.Initialize(activity);

            HelpText = DR.GetString(DR.DropActivityHere);
        }
 protected override void Initialize(Activity activity)
 {
     base.Initialize(activity);
     text = DR.GetString(DR.EventBasedWorkFlow);
 }