/// <summary>
 /// Applies the toolbar settings.
 /// </summary>
 /// <param name="sender"> Sender object.</param>
 /// <param name="e"> ApplyMenuSettingsEventArgs arguments.</param>
 public void inspector_ApplyToolbarSettingsEvent(object sender, ApplyToolbarSettingsEventArgs e)
 {
     this.ApplySettingsToolbarItems(e.ToolbarCommand);
 }
        /// <summary>
        /// Toggles the ReportDialogTest menu.
        /// </summary>
        /// <param name="enabled"></param>
        public void UpdateReportDialogTestMenu(bool enabled)
        {
            // new Arguments
            ApplyMenuSettingsEventArgs newArgs = new ApplyMenuSettingsEventArgs();

            // identify the shortcut
            newArgs.RootShortcut = Shortcut.CtrlShiftI;

            // get menu item by index
            Ecyware.GreenBlue.Controls.MenuItem reportDialogMenu = this.PluginMenus.GetByIndex(5);

            reportDialogMenu.Enabled = enabled;
            newArgs.MenuItems.Add(reportDialogMenu.Name,reportDialogMenu);

            ToolbarItem reportButton = (ToolbarItem)this.PluginMenus.GetByIndex(7);
            reportButton.Enabled = enabled;

            ApplyToolbarSettingsEventArgs args = new ApplyToolbarSettingsEventArgs(reportButton);

            // update toolbar
            this.ApplyToolbarSettingsEvent(this, args);

            // update menu
            this.ApplyMenuSettingsEvent(this, newArgs);
        }
 /// <summary>
 /// Applies toolbar settings for report preview.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 public void Report_ApplyToolbarSettingsEvent(object sender, ApplyToolbarSettingsEventArgs e)
 {
     this.ApplyToolbarSettingsEvent(this, e);
 }
 /// <summary>
 /// Updates any toolbar command.
 /// </summary>
 /// <param name="toolbarCmd"> The toolbar command.</param>
 /// <param name="enabled"> The enabled setting.</param>
 public void UpdateToolbar(ToolbarItem toolbarCmd, bool enabled)
 {
     toolbarCmd.Enabled = enabled;
     ApplyToolbarSettingsEventArgs args = new ApplyToolbarSettingsEventArgs(toolbarCmd);
     // update toolbar
     this.ApplyToolbarSettingsEvent(this, args);
 }
 /// <summary>
 /// Applies toolbar settings for SessionDesigner.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void sessionDesigner_ApplyToolbarSettingsEvent(object sender, ApplyToolbarSettingsEventArgs e)
 {
     this.ApplyToolbarSettingsEvent(this, e);
 }