Esempio 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);
        }
Esempio n. 2
0
        private void menuItemConsole_Click(object sender, System.EventArgs e)
        {
            KExplorerConsole console = new KExplorerConsole(this);

            TabPage x = new TabPage("Konsole");

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

            x.Controls.Add( console );

            this.tabControl1.TabPages.Add( x );

            this.tabControl1.SelectedTab = x;

            console.Initialize();
        }
Esempio n. 3
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 );
        }