Exemple #1
0
    private void btnOk_Click(object sender, System.EventArgs e)
    {
        // CopySettingsPath
        oSetting.SetBoolSetting("USER.EnfMVC.ContextMenuSetting.ShowExtended", chbCopySettingsPath.Checked, 0);

        // MenuId
        oSetting.SetBoolSetting("USER.EnfMVC.ContextMenuSetting.ShowIdentifier", chbMenuId.Checked, 0);

        // InplaceEditing
        oSetting.SetBoolSetting("USER.EnfMVC.Debug.InplaceEditingShowAllProperties", chbInplaceEditing.Checked, 0);

        // DontChangeSourceText
        oSetting.SetBoolSetting("USER.TRANSLATEGUI.DontChangeSourceText", chbDontChangeSourceText.Checked, 0);

        Close();
    }
Exemple #2
0
    public void Function()
    {
        Eplan.EplApi.Base.Settings oSettings =
            new Eplan.EplApi.Base.Settings();

        oSettings.SetBoolSetting("USER.EnfMVC.ContextMenuSetting.ShowExtended", true, 0);

        MessageBox.Show("Setting has been activated. EPLAN restart required.");

        return;
    }
        public void MyFunction()
        {
            Eplan.EplApi.Base.Settings oSettings = new Eplan.EplApi.Base.Settings();
            //Einstellung auslesen
            bool bolSetting = oSettings.GetBoolSetting("USER.ModalDialogs.XSdCustomToolbarComponent.ExtendedActionList", 0);

            //wenn nicht gesetzt, setzen
            if (bolSetting == false)
            {
                oSettings.SetBoolSetting("USER.ModalDialogs.XSdCustomToolbarComponent.ExtendedActionList", true, 0);
                MessageBox.Show("Die Einstellung wurde 'aktiviert'.", "USER.ModalDialogs.XSdCustomToolbarComponent.ExtendedActionList", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            //wenn gesetzt, zurücksetzen
            else if (bolSetting == true)
            {
                oSettings.SetBoolSetting("USER.ModalDialogs.XSdCustomToolbarComponent.ExtendedActionList", false, 0);
                MessageBox.Show("Die Einstellung wurde 'deaktiviert'.", "USER.ModalDialogs.XSdCustomToolbarComponent.ExtendedActionList", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            return;
        }
    public void Register()
    {
        Eplan.EplApi.Base.Settings oSettings =
            new Eplan.EplApi.Base.Settings();

        oSettings.SetBoolSetting(
            "USER.EnfMVC.ContextMenuSetting.ShowIdentifier",
            true,
            0
            );

        MessageBox.Show("Kontextmenü-ID: sichtbar");

        return;
    }
    public void Register()
    {
        Eplan.EplApi.Base.Settings oSettings =
            new Eplan.EplApi.Base.Settings();

        oSettings.SetBoolSetting(
            "USER.EnfMVC.ContextMenuSetting.ShowIdentifier",
            true,
            0
            );

        MessageBox.Show("Kontextmenü-ID: sichtbar");

        return;
    }
    public void UnRegister()
    {
        Eplan.EplApi.Base.Settings oSettings =
            new Eplan.EplApi.Base.Settings();

        oSettings.SetBoolSetting(
            "USER.EnfMVC.ContextMenuSetting.ShowIdentifier",
            false,
            0
            );

        MessageBox.Show("Context menu ID: invisible");

        return;
    }
    public void Function()
    {
        Eplan.EplApi.Base.Settings oSettings =
            new Eplan.EplApi.Base.Settings();

        oSettings.SetBoolSetting(
            "USER.EnfMVC.ContextMenuSetting.ShowExtended",
            true,
            0
            );

        MessageBox.Show(
            "Einstellung wurde aktiviert. EPLAN-Neustart erforderlich."
            );

        return;
    }
Exemple #8
0
    public void Function()
    {
        Eplan.EplApi.Base.Settings oSettings =
            new Eplan.EplApi.Base.Settings();

        oSettings.SetBoolSetting(
            "USER.EnfMVC.ContextMenuSetting.ShowExtended",
            true,
            0
            );

        MessageBox.Show(
            "Einstellung wurde aktiviert. EPLAN-Neustart erforderlich."
            );

        return;
    }