コード例 #1
0
 void htmlEditor_ReadyStateCompleteInternal(IHtmlEditor editor)
 {
     // add commands
     editor.AddCommand(new CommandWrapper(new EventHandler(SpellerOperation), Commands.RemoveHighLight));
     editor.AddCommand(new CommandWrapper(new EventHandler(SpellerOperation), Commands.StartBackground));
     editor.AddCommand(new CommandWrapper(new EventHandler(SpellerOperation), Commands.StopBackground));
     editor.AddCommand(new CommandWrapper(new EventHandler(SpellerOperation), Commands.StartWordByWord));
     editor.AddCommand(new CommandWrapper(new EventHandler(SpellerOperation), Commands.StopWordByWord));
     editor.AddCommand(new CommandWrapper(new EventHandler(SpellerOperation), Commands.StartBlock));
     editor.AddCommand(new CommandWrapper(new EventHandler(SpellerOperation), Commands.StopBlock));
     editor.AddCommand(new CommandWrapper(new EventHandler(SpellerOperation), Commands.ClearBuffer));
 }
コード例 #2
0
        void htmlEditor_Loaded(object sender, GuruComponents.Netrix.Events.LoadEventArgs e)
        {
            IHtmlEditor editor = (IHtmlEditor)sender;

            // add commands
            editor.AddCommand(new CommandWrapper(new EventHandler(SpellerOperation), Commands.RemoveHighLight));
            editor.AddCommand(new CommandWrapper(new EventHandler(SpellerOperation), Commands.StartBackground));
            editor.AddCommand(new CommandWrapper(new EventHandler(SpellerOperation), Commands.StopBackground));
            editor.AddCommand(new CommandWrapper(new EventHandler(SpellerOperation), Commands.StartWordByWord));
            editor.AddCommand(new CommandWrapper(new EventHandler(SpellerOperation), Commands.StopWordByWord));
            editor.AddCommand(new CommandWrapper(new EventHandler(SpellerOperation), Commands.StartBlock));
            editor.AddCommand(new CommandWrapper(new EventHandler(SpellerOperation), Commands.StopBlock));
            editor.AddCommand(new CommandWrapper(new EventHandler(SpellerOperation), Commands.ClearBuffer));
        }