示例#1
0
        private void optionToolStripMenuItem_Click(object sender, EventArgs e)
        {
            DesktopNoteOption dno = new DesktopNoteOption();

            dno.dns = this.dns;


            if (dno.ShowDialog() == DialogResult.Cancel)
            {
                richTextBox1.Font      = dno.myfont;
                richTextBox1.ForeColor = dno.fColor;
                this.BackColor         = dno.bgColor;
                richTextBox1.BackColor = this.BackColor;
                this.Opacity           = dno.op / 100;
                dns.pathtwo            = dno.path;
                //MessageBox.Show(dno.s);
            }
        }
示例#2
0
        private void optionToolStripMenuItem_Click(object sender, EventArgs e)
        {
            DesktopNoteOption dno = new DesktopNoteOption(this);

            dno.dns      = this.dns;
            this.TopMost = false;

            if (dno.ShowDialog() == DialogResult.Cancel)
            {
                childForm.richTextBox1.Font      = dno.myfont;
                childForm.richTextBox1.ForeColor = dno.fColor;
                childForm.label1.Font            = dno.myfont;
                childForm.label1.ForeColor       = dno.fColor;

                this.BackColor = dno.bgColor;
                //  childForm.richTextBox1.BackColor = this.BackColor;
                this.Opacity = dno.op == 0? 0.01 : dno.op / 100;
                dns.pathtwo  = dno.path;
                //MessageBox.Show(dno.s);
                writeSet();
                this.TopMost = stayTopToolStripMenuItem.Checked;
            }
        }