96 references to DesignerHelpers
System.Workflow.ComponentModel (96)
AuthoringOM\Activity.cs (1)
2415
activity.Name =
DesignerHelpers
.GenerateUniqueIdentifier(((IComponent)this).Site, Helpers.GetBaseIdentifier(activity), (string[])identifiers.ToArray(typeof(string)));
AuthoringOM\Design\ActivityDesigner.cs (8)
218
value =
DesignerHelpers
.SnapToGrid(value);
796
IDictionary<string, string> rules =
DesignerHelpers
.GetDeclarativeRules(Activity);
1138
DesignerHelpers
.MakePropertiesReadOnly(activity.Site, activity);
1221
handler =
DesignerHelpers
.CreateUniqueMethodName(Activity, eventDesc.Name, eventDesc.EventType);
1590
DesignerHelpers
.ShowDesignerVerbs(this, PointToScreen(smartTagPoint), verbs);
2090
handler =
DesignerHelpers
.CreateUniqueMethodName(Activity, propertyDescriptor.Name, rtType);
2141
CustomProperty newCustomProperty = CustomProperty.CreateCustomProperty(Activity.Site,
DesignerHelpers
.GenerateUniqueIdentifier(Activity.Site, Activity.Name + "_" + propertyDescriptor.Name, customPropertyNames.ToArray()), propertyDescriptor, Activity);
2269
DesignerHelpers
.RefreshDesignerActions(Activity.Site);
AuthoringOM\Design\CommandSet.cs (5)
400
if (!
DesignerHelpers
.AreComponentsRemovable(components))
728
DesignerHelpers
.ShowError(this.serviceProvider, DR.GetString(DR.ThereIsNoPrinterInstalledErrorMessage));
773
DesignerHelpers
.ShowError(this.serviceProvider, DR.GetString(DR.ThereIsNoPrinterInstalledErrorMessage));
814
DesignerHelpers
.ShowError(this.serviceProvider, errorString);
834
if (!Helpers.AreAllActivities(components) || !
DesignerHelpers
.AreAssociatedDesignersMovable(components))
AuthoringOM\Design\CompositeActivityDesigner.cs (6)
525
nextSelectableActivity =
DesignerHelpers
.GetNextSelectableActivity(activity);
935
DesignerHelpers
.UpdateSiteName(activity, "_activityonthemove_");
942
DesignerHelpers
.UpdateSiteName(nestedActivity, "_activityonthemove_" + i.ToString(CultureInfo.InvariantCulture));
961
DesignerHelpers
.UpdateSiteName(activity, activity.Name);
965
DesignerHelpers
.UpdateSiteName(nestedActivity, nestedActivity.Name);
1478
DesignerHelpers
.MakePropertiesReadOnly(e.Component.Site, designer.Activity);
AuthoringOM\Design\DesignerHelpers.cs (2)
1200
return Helpers.PerUserRegistryKey + "\\" +
DesignerHelpers
.WorkflowDesignerSubKey;
1429
DesignerHelpers
.ShowError(serviceProvider, DR.GetString(DR.NoHelpAvailable));
AuthoringOM\Design\Dialogs\ActivityBindForm.cs (8)
204
this.memberNameTextBox.Text =
DesignerHelpers
.GenerateUniqueIdentifier(this.serviceProvider, activity.Name + "_" + context.PropertyDescriptor.Name, customPropertyNames.ToArray());
238
DesignerHelpers
.ShowError(this.serviceProvider, message);
254
DesignerHelpers
.ShowError(this.serviceProvider, message);
265
DesignerHelpers
.ShowError(this.serviceProvider, SR.GetString(SR.Error_BindDialogCanNotBindToItself));
293
DesignerHelpers
.ShowError(this.serviceProvider, message);
354
DesignerHelpers
.ShowError(context, errorMsg);
443
DesignerHelpers
.ShowHelpFromKeyword(this.serviceProvider, typeof(ActivityBindForm).FullName + ".UI");
1026
DesignerHelpers
.ShowError(this.parent.serviceProvider, string.Format(CultureInfo.CurrentCulture, this.parent.IncorrectIndexChange, newLabel));
AuthoringOM\Design\Dialogs\ThemeConfigurationDialog.cs (14)
473
DesignerHelpers
.ShowError(this.serviceProvider, error);
490
if (DialogResult.No ==
DesignerHelpers
.ShowMessage(this.serviceProvider, DR.GetString(DR.UpdateRelativePaths), DR.GetString(DR.WorkflowDesignerTitle), MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1))
513
DesignerHelpers
.ShowError(this.serviceProvider, DR.GetString(DR.ThemeFileCreationError));
540
DesignerHelpers
.ShowHelpFromKeyword(this.serviceProvider, typeof(ThemeConfigurationDialog).FullName + ".UI");
649
stockActivityTypeNames.Add(
DesignerHelpers
.SequentialWorkflowTypeRef);
650
stockActivityTypeNames.Add(
DesignerHelpers
.StateMachineWorkflowTypeRef);
651
stockActivityTypeNames.Add(
DesignerHelpers
.IfElseBranchTypeRef);
653
stockActivityTypeNames.Add(
DesignerHelpers
.EventHandlersTypeRef);
724
Type designerBaseType = (type.FullName.Equals(
DesignerHelpers
.SequentialWorkflowTypeRef, StringComparison.OrdinalIgnoreCase)) ? typeof(IRootDesigner) : typeof(IDesigner);
836
Type designerBaseType = (activityType.FullName.Equals(
DesignerHelpers
.SequentialWorkflowTypeRef, StringComparison.OrdinalIgnoreCase)) ? typeof(IRootDesigner) : typeof(IDesigner);
883
Type designerBaseType = (activityType.FullName.Equals(
DesignerHelpers
.SequentialWorkflowTypeRef, StringComparison.OrdinalIgnoreCase)) ? typeof(IRootDesigner) : typeof(IDesigner);
938
Activity rootDecl = host.CreateComponent(Type.GetType(
DesignerHelpers
.SequentialWorkflowTypeRef)) as Activity;
999
if (activityType == null || activityType.FullName.Equals(
DesignerHelpers
.SequentialWorkflowTypeRef, StringComparison.OrdinalIgnoreCase))
1001
AddDummyActivity(rootDecl as CompositeActivity, Type.GetType(
DesignerHelpers
.CodeActivityTypeRef));
AuthoringOM\Design\Dialogs\TypeBrowserDialog.cs (10)
560
DesignerHelpers
.ShowError(this.serviceProvider, ex);
601
DesignerHelpers
.ShowError(this.serviceProvider, ex);
636
DesignerHelpers
.ShowHelpFromKeyword(this.serviceProvider, typeof(TypeBrowserDialog).FullName + ".UI");
699
DesignerHelpers
.ShowError(this.serviceProvider, ex);
728
DesignerHelpers
.ShowError(this.serviceProvider, errorMessage);
747
DesignerHelpers
.ShowError(this.serviceProvider, fnf.Message);
751
DesignerHelpers
.ShowError(this.serviceProvider, SR.GetString(SR.Error_AssemblyBadImage, fileDialog.FileName));
755
DesignerHelpers
.ShowError(this.serviceProvider, SR.GetString(SR.Error_AssemblyBadImage, fileDialog.FileName));
759
DesignerHelpers
.ShowError(this.serviceProvider, SR.GetString(SR.Error_AddAssemblyRef, fileDialog.FileName, ex.Message));
899
DesignerHelpers
.ShowError(this.serviceProvider, ex);
AuthoringOM\Design\Dialogs\WorkflowPageSetupDialog.cs (3)
1059
DesignerHelpers
.ShowError(this.serviceProvider, errorString);
1084
DesignerHelpers
.ShowError(this.serviceProvider, errorString);
1255
DesignerHelpers
.ShowHelpFromKeyword(this.serviceProvider, typeof(WorkflowPageSetupDialog).FullName + ".UI");
AuthoringOM\Design\FreeFormDesigner.cs (1)
845
containedDesigner.Location =
DesignerHelpers
.SnapToGrid(containedDesigner.Location);
AuthoringOM\Design\Glyphs\ConfigErrorGlyph.cs (2)
116
DesignerHelpers
.ShowDesignerVerbs(designer, location,
DesignerHelpers
.GetDesignerActionVerbs(designer, designer.DesignerActions));
AuthoringOM\Design\MessageFilters\DragDropManager.cs (4)
548
DesignerHelpers
.ShowError(ParentView, errorMessage);
734
if (!
DesignerHelpers
.AreAssociatedDesignersMovable(this.draggedActivities))
836
DragDropEffects allowedEffects = (
DesignerHelpers
.AreAssociatedDesignersMovable(this.existingDraggedActivities)) ? DragDropEffects.Move | DragDropEffects.Copy : DragDropEffects.Copy;
844
DesignerHelpers
.ShowError(ParentView, e.Message);
AuthoringOM\Design\MessageFilters\FreeFormDragDropManager.cs (1)
259
location =
DesignerHelpers
.SnapToGrid(location);
AuthoringOM\Design\MessageFilters\ResizingMessageFilter.cs (2)
288
x =
DesignerHelpers
.SnapToGrid(new Point(x, 0)).X;
300
y =
DesignerHelpers
.SnapToGrid(new Point(0, y)).Y;
AuthoringOM\Design\MessageFilters\WindowManager.cs (1)
259
if (
DesignerHelpers
.AreComponentsRemovable(components))
AuthoringOM\Design\PropertyDescriptors.cs (2)
54
DesignerHelpers
.UpdateSiteName(activity, newID);
132
DesignerHelpers
.UpdateSiteName((Activity)host.RootComponent, name);
AuthoringOM\Design\StructuredCompositeActivityDesigner.cs (1)
151
DesignerHelpers
.RefreshDesignerActions(Activity.Site);
AuthoringOM\Design\Themes.cs (10)
240
return
DesignerHelpers
.DesignerPerUserRegistryKey + "\\" + WorkflowThemesSubKey;
1076
value =
DesignerHelpers
.GetRelativePath(ContainingTheme.ContainingFileDirectory, value);
1078
if (!
DesignerHelpers
.IsValidImageResource(this, ContainingTheme.ContainingFileDirectory, value))
1343
this.designerImage =
DesignerHelpers
.GetImageFromPath(this, ContainingTheme.ContainingFileDirectory, this.designerImagePath);
1504
value =
DesignerHelpers
.GetRelativePath(ContainingTheme.ContainingFileDirectory, value);
1506
if (!
DesignerHelpers
.IsValidImageResource(this, ContainingTheme.ContainingFileDirectory, value))
1648
this.watermarkImage =
DesignerHelpers
.GetImageFromPath(this, ContainingTheme.ContainingFileDirectory, this.watermarkImagePath);
2555
value =
DesignerHelpers
.GetRelativePath(ContainingTheme.ContainingFileDirectory, value);
2557
if (!
DesignerHelpers
.IsValidImageResource(this, ContainingTheme.ContainingFileDirectory, value))
3052
this.watermarkImage =
DesignerHelpers
.GetImageFromPath(this, ContainingTheme.ContainingFileDirectory, this.watermarkImagePath);
AuthoringOM\Design\UITypeEditors.cs (3)
163
DesignerHelpers
.ShowError(context, message);
168
DesignerHelpers
.ShowError(this.serviceProvider, SR.GetString(SR.Error_MultipleSelectNotSupportedForBindAndPromote));
198
DesignerHelpers
.ShowError(context, message);
AuthoringOM\Design\WorkflowInlining.cs (4)
164
DesignerHelpers
.SerializeDesignerStates(designerHost, writer);
188
DesignerHelpers
.DeserializeDesignerStates(designerHost, reader);
380
((parameterProperty.DeclaringType == Type.GetType(
DesignerHelpers
.SequentialWorkflowTypeRef) ||
381
parameterProperty.DeclaringType == Type.GetType(
DesignerHelpers
.StateMachineWorkflowTypeRef)) &&
AuthoringOM\Design\WorkflowPrinting.cs (3)
101
DesignerHelpers
.ShowError(this.workflowView, DR.GetString(DR.SelectedPrinterIsInvalidErrorMessage));
197
DesignerHelpers
.ShowError(this.workflowView, DR.GetString(DR.SelectedPrinterIsInvalidErrorMessage) + "\n" + exception.Message);
423
private static readonly string WinOEPrintingSubKey =
DesignerHelpers
.DesignerPerUserRegistryKey + "\\Printing";
AuthoringOM\Design\WorkflowView.cs (4)
495
DesignerHelpers
.ShowError(this, DR.GetString(DR.ThereIsNoPrinterInstalledErrorMessage));
889
DesignerHelpers
.SerializeDesignerStates(designerHost, writer);
918
outdated =
DesignerHelpers
.DeserializeDesignerStates(designerHost, reader);
1445
DesignerHelpers
.ShowError(this, e);
AuthoringOM\Design\XomlDesignerLoader.cs (1)
802
DesignerHelpers
.RefreshDesignerActions(this.serviceProvider);