Exemplo n.º 1
0
 public void Exec(Guid pguidCmdGroup, uint nCmdID, OLECMDEXECOPT nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
 {
     if ((nCmdID == 0) && (nCmdexecopt != OLECMDEXECOPT.OLECMDEXECOPT_SHOWHELP))
     {
         Bho.ShowOptionsDlg();
     }
 }
Exemplo n.º 2
0
        public OptionDialog(Bho trixie)
        {
            if (TranslationManager.Instance.TranslationProvider == null)
            {
                // setup Translator because COM is created without calling App.OnStartup()
                var xml = Trixie.Properties.Resources.Localizer;
                var tx  = new XmlTranslationProvider(xml);
                TranslationManager.Instance.TranslationProvider = tx;
            }

            Settings = new ObservableCollection <ScriptSetting>();
            mTrixie  = trixie;

            InitializeComponent();

            DataContext = this;
        }
        public OptionDialog( Bho trixie )
        {
            if ( TranslationManager.Instance.TranslationProvider == null )
            {
                // setup Translator because COM is created without calling App.OnStartup()
                var xml = Trixie.Properties.Resources.Localizer;
                var tx = new XmlTranslationProvider( xml );
                TranslationManager.Instance.TranslationProvider = tx;
            }

            Settings = new ObservableCollection<ScriptSetting>();
            mTrixie = trixie;

            InitializeComponent();

            DataContext = this;
        }