public ParametersWizard(ModelItem ownerActivity, Int32 CmdType, String Name, String Id) { InitializeComponent(); this.ModelItem = ownerActivity; this.Context = ownerActivity.GetEditingContext(); // Initialize Parameters InitializeParameters(); if (Parameters.Count == 0) { EmptyParameter = true; Parameters.Add(new ParametersViewModel()); } UpdateParameterIndex(0); if (Salesforce_Marketing_Cloud_Scope.Design_VALIDCONN) { AuthToken = Salesforce_Marketing_Cloud_Scope.Design_AUTH; ServiceURL = Salesforce_Marketing_Cloud_Scope.Design_SERVICES; } CmdTYPE = (Type_of_Command)CmdType; NameDecision = Name; IdDecision = Id; switch (CmdTYPE) { case Type_of_Command.AddList: case Type_of_Command.UpdateList: ServiceName = "List"; cmdTypeMandatory = Type_of_Command.GetMandatoryList; break; case Type_of_Command.AddSubscriber: case Type_of_Command.UpdateSubscriber: ServiceName = "Subscriber"; cmdTypeMandatory = Type_of_Command.GetMandatorySubscriber; break; case Type_of_Command.AddDataExtension: case Type_of_Command.UpdateDataExtension: ServiceName = "DataExtension"; cmdTypeMandatory = Type_of_Command.GetMandatoryDataExtension; break; case Type_of_Command.AddDataExtensionObject: case Type_of_Command.UpdateDataExtensionObject: ServiceName = "DataExtensionObject"; cmdTypeMandatory = Type_of_Command.GetMandatoryDataExtensionObject; break; case Type_of_Command.AddCampaign: case Type_of_Command.UpdateCampaign: ServiceName = "campaigns"; cmdTypeMandatory = Type_of_Command.GetMandatoryCampaign; break; default: break; } // if ((CmdTYPE == Type_of_Command.AddCustom) || (CmdTYPE == Type_of_Command.UpdateCustom)) // btnMandatory.IsEnabled = false; }
public CheckIDWizard(Type_of_Command CmdTYPE, String ObjectName, Hashtable HashData) { cmdTYPE = Type_of_Command.JustDisplay; HashGeneralData = HashData; InitializeComponent(); this.Title = "List of fields from " + ObjectName; this.WindowStartupLocation = WindowStartupLocation.Manual; parentWindow = null; objToReturn = null; }
public CheckIDWizard(String AuthToken, String ServiceURL, Type_of_Command CmdTYPE, String Name, String ID, ParametersWizard ParentWindow, String NameOfService, Type_of_Command CmdTYPEMandatory) { cmdTYPE = CmdTYPE; InitializeComponent(); authToken = AuthToken; serviceURL = ServiceURL; id = ID; name = Name; parentWindow = ParentWindow; nameOfService = NameOfService; cmdTYPEMandatory = CmdTYPEMandatory; if (cmdTYPE != Type_of_Command.CheckID) { this.WindowStartupLocation = WindowStartupLocation.Manual; } else { this.Topmost = false; this.Title = "Check ID in " + name; } }
public CommandResult(Boolean Valid, String Response, String ID, String AuthToken, String ServiceURL, String ServiceName, Type_of_Command CmdTYPE) { valid = Valid; response = Response; id = ID; authToken = AuthToken; serviceURL = ServiceURL; serviceName = ServiceName; cmdTYPE = CmdTYPE; switch (cmdTYPE) { case Type_of_Command.AddList: cmdTYPE = Type_of_Command.DeleteList; break; case Type_of_Command.AddSubscriber: cmdTYPE = Type_of_Command.DeleteSubscriber; break; case Type_of_Command.AddDataExtension: cmdTYPE = Type_of_Command.DeleteDataExtension; break; case Type_of_Command.AddCampaign: cmdTYPE = Type_of_Command.DeleteCampaign; break; case Type_of_Command.AddDataExtensionObject: cmdTYPE = Type_of_Command.DeleteDataExtensionObject; break; default: cmdTYPE = Type_of_Command.SOQLcommand; break; } WindowStartupLocation = System.Windows.WindowStartupLocation.CenterScreen; InitializeComponent(); this.Loaded += CommandResult_Loaded; }