Example #1
0
//        public StringBuilder Feedback = new StringBuilder();


        /// <summary>
        /// Default constructor: initiating everything here
        /// </summary>
        public FormMainWindow()
        {
            InitializeComponent();



            //Setting the second tab as the default tab( i.e. hindi tab as default)
            this.tabControl1.SelectedIndex = 1;

            ruleEditor = new RuleEditor();
            ruleEditor.SetFileName(RuleFileName);

            verbEditor = new RuleEditor();
            verbEditor.SetFileName(VerbListFileName);

            nounEditor = new RuleEditor();
            nounEditor.SetFileName(NounListFileName);

            adjectiveEditor = new RuleEditor();
            adjectiveEditor.SetFileName(AdjectiveListFileName);

            pronounEditor = new RuleEditor();
            pronounEditor.SetFileName(PronounListFileName);

            UsersCustomEditor = new RuleEditor();
            UsersCustomEditor.SetFileName(UsersCustomFileName);

            //this is for dragging and dropping text files
            this.richTextBoxHindi.DragDrop += new System.Windows.Forms.DragEventHandler(this.DragTextFile);

            //This is for setting cursor
            this.richTextBoxHindi.DragEnter += new DragEventHandler(this.TextBox_DragEnter);

            this.webBrowser.Navigate("about:blank");
        }
Example #2
0
 /// <summary>
 /// Editing Nouns from the Editor
 /// </summary>
 private void editNounListToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (pr == null)
     {
         pr = new PostProcessor(RuleFileName, VerbListFileName, NounListFileName, AdjectiveListFileName,
                                PronounListFileName, UsersCustomFileName);
     }
     if (nounEditor == null || nounEditor.IsDisposed)
     {
         nounEditor = new RuleEditor();
     }
     nounEditor.SetFileName(NounListFileName);
     nounEditor.Show();
 }
Example #3
0
        public void Initialise(IAutoWikiBrowser sender)
        {
            if (sender == null)
            {
                throw new ArgumentNullException("sender");
            }

            AWB = sender;

            // Menuitem should be checked when TranslatorExample plugin is active and unchecked when not, and default to not!
            pluginenabledMenuItem.CheckOnClick = true;
            PluginEnabled = Settings.Enabled;

            pluginconfigMenuItem.Click           += ShowSettings;
            pluginenabledMenuItem.CheckedChanged += PluginEnabledCheckedChange;
            aboutMenuItem.Click += AboutMenuItemClicked;
            pluginenabledMenuItem.DropDownItems.Add(pluginconfigMenuItem);

            sender.PluginsToolStripMenuItem.DropDownItems.Add(pluginenabledMenuItem);
            sender.HelpToolStripMenuItem.DropDownItems.Add(aboutMenuItem);

            ruleEditor = new RuleEditor();
            ruleEditor.SetFileName(RuleFileName);

            verbEditor = new RuleEditor();
            verbEditor.SetFileName(VerbListFileName);

            nounEditor = new RuleEditor();
            nounEditor.SetFileName(NounListFileName);

            adjectiveEditor = new RuleEditor();
            adjectiveEditor.SetFileName(AdjectiveListFileName);

            pronounEditor = new RuleEditor();
            pronounEditor.SetFileName(PronounListFileName);

            UsersCustomEditor = new RuleEditor();
            UsersCustomEditor.SetFileName(UsersCustomFileName);
        }