Esempio n. 1
0
        //设置
        private void tsmiMoreSetting_Click(object sender, EventArgs e)
        {
            DialogResult dr = new SettingForm().ShowDialog();

            //new SettingForm().Show();
            if (dr == DialogResult.OK)
            {
                this.rtbxMain.SuspendLayout();
                this.rtbxMain.BackColor = Color.FromArgb(Convert.ToInt32(G.BackColor, 16));//.FromName(G.BackColor);
                this.rtbxMain.ForeColor = Color.FromArgb(Convert.ToInt32(G.FontColor, 16));
                this.rtbxMain.Font      = new Font(this.rtbxMain.Font.Name, G.FontSize, this.rtbxMain.Font.Style);
                //this.rtbxMain.Refresh();
                this.rtbxMain.ResumeLayout();
            }
        }
Esempio n. 2
0
 //设置
 private void tsmiMoreSetting_Click(object sender, EventArgs e)
 {
     DialogResult dr = new SettingForm().ShowDialog();
     //new SettingForm().Show();
     if (dr == DialogResult.OK)
     {
         this.rtbxMain.SuspendLayout();
         this.rtbxMain.BackColor = Color.FromArgb(Convert.ToInt32(G.BackColor, 16));//.FromName(G.BackColor);
         this.rtbxMain.ForeColor = Color.FromArgb(Convert.ToInt32(G.FontColor, 16));
         this.rtbxMain.Font = new Font(this.rtbxMain.Font.Name, G.FontSize, this.rtbxMain.Font.Style);
         //this.rtbxMain.Refresh();                
         this.rtbxMain.ResumeLayout();
     }
 }