Exemplo n.º 1
0
        private void button2_Click(object sender, EventArgs e)
        {
            if (this.terminalControl.TerminalPane.ConnectionTag == null) // it will be null if you're not connected to anything
            {
                return;
            }

            Poderosa.Forms.EditRenderProfile dlg = new Poderosa.Forms.EditRenderProfile(this.terminalControl.TerminalPane.ConnectionTag.RenderProfile);

            if (dlg.ShowDialog() != DialogResult.OK)
            {
                return;
            }

            this.terminalControl.TerminalPane.ConnectionTag.RenderProfile = dlg.Result;
            this.terminalControl.TerminalPane.ApplyRenderProfile(dlg.Result);
        }
Exemplo n.º 2
0
        private void button69_Click_1(object sender, EventArgs e)
        {
            if (this.terminalControl1.TerminalPane.ConnectionTag == null) // it will be null if you're not connected to anything
                return;

            Poderosa.Forms.EditRenderProfile dlg = new Poderosa.Forms.EditRenderProfile(this.terminalControl1.TerminalPane.ConnectionTag.RenderProfile);

            if (dlg.ShowDialog() != DialogResult.OK)
                return;

            this.terminalControl1.TerminalPane.ConnectionTag.RenderProfile = dlg.Result;
            this.terminalControl1.TerminalPane.ApplyRenderProfile(dlg.Result);
        }