internal ActionFactory(String displayName, Type actionType, ICentipedeCore core) : base(displayName) { _actionType = actionType; _core = core; ImageKey = @"Generic"; }
public SubJobAction(IDictionary <string, object> variables, ICentipedeCore c) : base("Run Sub-job", variables, c) { if (GetCurrentCore().Job.Actions.OfType <SubJobEntry>().Any()) { throw new ApplicationException("Cannot nest subjobs more than one layer deep"); } }
protected UIAction(string name, string verb, ICentipedeCore core) : base(name, core) { if (!String.IsNullOrEmpty(verb)) { this.Prompt = String.Format("Please {0} the following values", verb); } }
public ActionFactory(ActionCategoryAttribute catAttribute, Type pluginType, ICentipedeCore core) { string displayName = !String.IsNullOrEmpty(catAttribute.DisplayName) ? catAttribute.DisplayName : pluginType.Name; Text = displayName; ToolTipText = catAttribute.Usage; _actionType = pluginType; _core = core; ImageKey = @"Generic"; }
public static List <IAction> FromClipboard(ICentipedeCore core) { var data = (string)Clipboard.GetData(DataFormats.Text); var doc = new XmlDocument(); doc.LoadXml(data); var clipBoardElement = doc.GetFirstElementByName(ElementName); if (clipBoardElement == null) { throw new ApplicationException(); } return(clipBoardElement.ChildNodes.OfType <XmlElement>() .Select(element => (IAction)Action.FromXml(element, core)) .ToList()); }
private void PopulateComboBox() { ICentipedeCore core = ThisAction.GetCurrentCore(); lock (core.Job) { var actionIter = from Action a in core.Job.Actions where a != ThisAction select new { Text = String.Format("{0}: {1}", a.Name, a.Comment), Action = a }; _actionCombo.DataSource = actionIter.ToList(); } }
public PythonAction(IDictionary <string, object> variables, ICentipedeCore c) : base("Python Action", variables, c) { _source = ""; }
public Import(IDictionary <string, object> variables, ICentipedeCore core) : base("Import module", variables, core) { }
public DeleteSwItem(IDictionary <String, Object> v, ICentipedeCore c) : base("Delete Item", v, c) { }
public SubJobExitPoint(IDictionary <string, object> variables, ICentipedeCore core) : base("SubJob Exit", variables, core) { }
protected SubJobEntryExitPoint(string name, IDictionary <string, object> variables, ICentipedeCore core) : base(name, variables, core) { }
public GetXmlNodeAsString(IDictionary <string, object> v, ICentipedeCore c) : base("Get Xpath Node as String", v, c) { }
public OpenXmlFile(IDictionary <string, object> variables, ICentipedeCore c) : base("Open XML File", variables, c) { }
public Quit(IDictionary <String, Object> v, ICentipedeCore c) : base("Quit", v, c) { }
public SwCloseAll(IDictionary <String, Object> v, ICentipedeCore c) : base("Close All", v, c) { }
public CloseActiveSwDoc(IDictionary <String, Object> v, ICentipedeCore c) : base("Close Active Document", v, c) { }
public SolidWorksSaveAs(IDictionary <String, Object> v, ICentipedeCore c) : base("Save As", v, c) { }
public DeleteInactiveSwComponents(IDictionary <String, Object> v, ICentipedeCore c) : base("Delete Inactive Components", v, c) { }
public DeleteInactiveSwConfigurations(IDictionary <String, Object> v, ICentipedeCore c) : base("Delete Inactive Configurations", v, c) { }
protected XmlAction(String name, IDictionary <string, object> variables, ICentipedeCore c) : base(name, variables, c) { }
public CountMatchingXPathNodes(IDictionary <string, object> v, ICentipedeCore c) : base("Count Matching nodes", v, c) { }
public OpenSolidWorksFile(IDictionary <string, object> v, ICentipedeCore c) : base("Open SolidWorks File", v, c) { }
public GetXPathNodeAsNumber(IDictionary <string, object> v, ICentipedeCore c) : base("Get Xpath Node as Number", v, c) { }
public RebuildSolidWorks(IDictionary <String, Object> v, ICentipedeCore c) : base("Rebuild", v, c) { }
public SetSwDimension(IDictionary <String, Object> v, ICentipedeCore c) : base("Set Dimension", v, c) { }
public GetFileNameAction(ICentipedeCore c) : base("Ask for Input (File Browser)", c) { this.Title = "Choose File"; this.Prompt = ""; }
public SubJobEntry(IDictionary <string, object> variables, ICentipedeCore core) : base("SubJob Entry", variables, core) { }
public TestDeserialize(IDictionary <string, object> variables, ICentipedeCore core) : base("Test Deserialize", variables, core) { }
/// <summary> /// create a new Branch action /// </summary> /// <param name="variables"></param> /// <param name="c"></param> public BranchAction(IDictionary <string, object> variables, ICentipedeCore c) : base(Resources.BranchAction_BranchAction_Branch, variables, c) { }
public SetSwSuppressionState(IDictionary <String, Object> v, ICentipedeCore c) : base("Set Suppression State", v, c) { }