Exemplo n.º 1
0
        public override void Run(KExplorerNode folder)
        {
            KExplorerConsole console = new KExplorerConsole(KMultiForm.Instance());

            TabPage x = new TabPage("Konsole->");


            console.Dock = System.Windows.Forms.DockStyle.Fill;

            x.Controls.Add(console);


            KMultiForm.Instance().MainTabControl.TabPages.Add(x);


            KMultiForm.Instance().MainTabControl.SelectedTab = x;


            console.Initialize(folder.FullPath);
        }
Exemplo n.º 2
0
        public void RunProgramInKonsole(string exe, string options, KExplorerNode atFolderNode)
        {
            //First we'll see of the exe is in the scripthelperxml program locations.
            XmlNode node = this.scriptHelperDoc.SelectSingleNode("//ProgramAlias[@exe='" + exe.ToLower() + "']");
            string  foundexe;

            if (node != null)
            {
                foundexe = node.InnerText;
            }
            else
            {
                foundexe = exe;
            }

            KExplorerConsole console = new KExplorerConsole(KMultiForm.Instance());

            TabPage x = new TabPage("Konsole->");


            console.Dock = System.Windows.Forms.DockStyle.Fill;

            x.Controls.Add(console);


            KMultiForm.Instance().MainTabControl.TabPages.Add(x);


            KMultiForm.Instance().MainTabControl.SelectedTab = x;


            console.Initialize(atFolderNode.FullPath);


            console.TypeCommand(foundexe + " " + options);
        }