/// <summary>
        ///  Switches the activity between read only and read/write mode
        /// </summary>
        public override void SwitchMode(ActivitySettingsPartMode mode)
        {
            bool readOnly = (mode == ActivitySettingsPartMode.View);

            this.SetTextBoxReadOnlyOption("_upnSuffix", readOnly);
            //this.SetTextBoxReadOnlyOption("_dest", readOnly);
        }
        /// <summary>
        ///  Switches the activity between read only and read/write mode
        /// </summary>
        public override void SwitchMode(ActivitySettingsPartMode mode)
        {
            bool readOnly = mode == ActivitySettingsPartMode.View;

            this.SetControlReadOnlyOption(OktaFactorResetUI.AllowedFactorTypesID, readOnly);
            this.SetControlReadOnlyOption(OktaFactorResetUI.TenantUrlID, readOnly);
            this.SetControlReadOnlyOption(OktaFactorResetUI.OktaIdAttributeNameID, readOnly);
        }
 public override void SwitchMode(ActivitySettingsPartMode mode)
 {
     bool readOnly = (mode == ActivitySettingsPartMode.View);
     this.SetTextBoxReadOnlyOption("txtPowerShellVariables", readOnly);
     this.SetTextBoxReadOnlyOption("txtPowerShellModule", readOnly);
     this.SetTextBoxReadOnlyOption("txtScript", readOnly);
     this.SetTextBoxReadOnlyOption("txtWorkflowDataNameForOutput", readOnly);
 }
Ejemplo n.º 4
0
        /// <summary>
        ///  Switches the activity between read only and read/write mode
        /// </summary>
        public override void SwitchMode(ActivitySettingsPartMode mode)
        {
            bool readOnly = mode == ActivitySettingsPartMode.View;

            this.SetControlReadOnlyOption(OktaGroupMembershipUI.OktaGroupID, readOnly);
            this.SetControlReadOnlyOption(OktaGroupMembershipUI.TenantUrlID, readOnly);
            this.SetControlReadOnlyOption(OktaGroupMembershipUI.OktaIdAttributeNameID, readOnly);
            this.SetControlReadOnlyOption(OktaGroupMembershipUI.MembershipOperationID, readOnly);
        }
        public override void SwitchMode(ActivitySettingsPartMode mode)
        {
            bool readOnly = (mode == ActivitySettingsPartMode.View);

            this.SetTextBoxReadOnlyOption("txtPowerShellVariables", readOnly);
            this.SetTextBoxReadOnlyOption("txtPowerShellModule", readOnly);
            this.SetTextBoxReadOnlyOption("txtScript", readOnly);
            this.SetTextBoxReadOnlyOption("txtWorkflowDataNameForOutput", readOnly);
        }
        /// <summary>
        /// Switches the activity UI between read only mode and edit mode.
        /// </summary>
        /// <param name="mode">Represents read only mode or edit mode.</param>
        public void SwitchMode(ActivitySettingsPartMode mode)
        {
            // Enable or disable each definition listing based on the supplied mode
            // and additionally enable/disable all command buttons
            bool edit = mode == ActivitySettingsPartMode.Edit;

            foreach (DefinitionListing listing in this.definitionListings)
            {
                listing.Enabled = edit;
            }

            this.add.Enabled      = edit;
            this.delete.Enabled   = edit;
            this.moveUp.Enabled   = edit;
            this.moveDown.Enabled = edit;
        }
        /// <summary>
        /// Switches the activity UI between read only mode and edit mode.
        /// </summary>
        /// <param name="mode">Represents read only mode or edit mode.</param>
        public override void SwitchMode(ActivitySettingsPartMode mode)
        {
            Logger.Instance.WriteMethodEntry("Switch Mode: '{0}'.", mode);

            try
            {
                this.controller.SwitchMode(mode);
            }
            catch (Exception e)
            {
                Logger.Instance.ReportError(e);
                throw;
            }
            finally
            {
                Logger.Instance.WriteMethodExit("Switch Mode: '{0}'.", mode);
            }
        }
Ejemplo n.º 8
0
        /// <summary>
        /// Switches the activity UI between read only mode and edit mode.
        /// </summary>
        /// <param name="mode">Represents read only mode or edit mode.</param>
        public override void SwitchMode(ActivitySettingsPartMode mode)
        {
            Logger.Instance.WriteMethodEntry("Switch Mode: '{0}'.", mode);

            try
            {
                // Use the controller to enable/disable standard activity controls
                // the definitions controller will manage the mode of associated controls
                this.controller.SwitchMode(mode);
            }
            catch (Exception e)
            {
                Logger.Instance.ReportError(e);
                throw;
            }
            finally
            {
                Logger.Instance.WriteMethodExit("Switch Mode: '{0}'.", mode);
            }
        }
Ejemplo n.º 9
0
        public override void SwitchMode(ActivitySettingsPartMode mode)
        {
            bool readOnly = mode != ActivitySettingsPartMode.Edit;

            setControlReadOnly("txtActivityName", readOnly);
            setControlReadOnly("ddlActor", readOnly);
            setControlReadOnly("txtPropertyCount", readOnly);
            setControlReadOnly("ddlReturnType", readOnly);
            setControlReadOnly("tbTarget", readOnly);
            setControlReadOnly("ddlLanguage", readOnly);
            setControlReadOnly("tbCode", readOnly);
            setControlReadOnly("txtIncludes", readOnly);
            setControlReadOnly("txtAssemblies", readOnly);
            setControlVisible("btnAddParam", !readOnly);
            setControlVisible("btnRemoveParam", !readOnly);

            int count = 0;

            if (int.TryParse(getControlText("txtPropertyCount").ToString(), out count))
            {
                string paramList = "";

                for (int i = 1; i <= count; i++)
                {
                    try
                    {
                        paramList += getControlText("Parameter" + i) + ",";
                        setControlReadOnly("Parameter" + i.ToString(), readOnly);
                    }
                    catch { }
                }

                if (paramList.EndsWith(","))
                {
                    paramList = paramList.Substring(0, paramList.Length - 1);
                }

                setControlText("txtParamList", paramList);
            }
        }
Ejemplo n.º 10
0
        /// <summary>
        /// Switches the activity UI between read only mode and edit mode.
        /// </summary>
        /// <param name="mode">Represents read only mode or edit mode.</param>
        public override void SwitchMode(ActivitySettingsPartMode mode)
        {
            Logger.Instance.WriteMethodEntry("Switch Mode: '{0}'.", mode);

            try
            {
                // Use the controller to enable/disable standard activity controls
                // the definitions controller will manage the mode of associated controls
                this.controller.SwitchMode(mode);
            }
            catch (Exception e)
            {
                Logger.Instance.ReportError(e);
                throw;
            }
            finally
            {
                Logger.Instance.WriteMethodExit("Switch Mode: '{0}'.", mode);
            }
        }
Ejemplo n.º 11
0
        /// <summary>
        /// Switches the activity UI between read only mode and edit mode.
        /// </summary>
        /// <param name="mode">Represents read only mode or edit mode.</param>
        public void SwitchMode(ActivitySettingsPartMode mode)
        {
            // Enable or disable each definition listing based on the supplied mode
            // and additionally enable/disable all command buttons
            bool edit = mode == ActivitySettingsPartMode.Edit;
            foreach (DefinitionListing listing in this.definitionListings)
            {
                listing.Enabled = edit;
            }

            this.add.Enabled = edit;
            this.delete.Enabled = edit;
            this.moveUp.Enabled = edit;
            this.moveDown.Enabled = edit;
        }
Ejemplo n.º 12
0
 /// <summary>
 /// Switches the activity UI between read only mode and edit mode.
 /// </summary>
 /// <param name="mode">Represents read only mode or edit mode.</param>
 public void SwitchMode(ActivitySettingsPartMode mode)
 {
     // Loop through each control managed by the controller and enable/disable
     // the control based on the supplied mode
     bool edit = mode == ActivitySettingsPartMode.Edit;
     foreach (ActivityControl control in this.controls)
     {
         control.Enabled = edit;
     }
 }
Ejemplo n.º 13
0
        /// <summary>
        /// Switches the activity UI between read only mode and edit mode.
        /// </summary>
        /// <param name="mode">Represents read only mode or edit mode.</param>
        public override void SwitchMode(ActivitySettingsPartMode mode)
        {
            Logger.Instance.WriteMethodEntry("Switch Mode: '{0}'.", mode);

            try
            {
                // Switch the mode on all controls
                this.controller.SwitchMode(mode);
                this.parameters.SwitchMode(mode);
                this.arguments.SwitchMode(mode);
            }
            catch (Exception e)
            {
                Logger.Instance.ReportError(e);
                throw;
            }
            finally
            {
                Logger.Instance.WriteMethodExit("Switch Mode: '{0}'.", mode);
            }
        }
Ejemplo n.º 14
0
 public override void SwitchMode(ActivitySettingsPartMode mode)
 {
 }
Ejemplo n.º 15
0
 public override void SwitchMode(ActivitySettingsPartMode mode)
 {
 }