示例#1
0
 private void OnOptions(object sender, EventArgs e)
 {
     ReadOptions("pens.ini");
     ReadOptions("config.ini");
     FormOptions = new FormOptions(this);
     FormOptions.Show();
 }
示例#2
0
文件: Root.cs 项目: ywscr/gInk
        /*
         * private void OnPenSetting(object sender, EventArgs e)
         * {
         *      System.Diagnostics.Process.Start("notepad.exe", "pens.ini");
         * }
         */
        private void OnOptions(object sender, EventArgs e)
        {
            if (FormOptions != null)
            {
                return;
            }
            if (FormDisplay != null || FormCollection != null)
            {
                return;
            }

            ReadOptions("pens.ini");
            ReadOptions("config.ini");
            ReadOptions("hotkeys.ini");
            FormOptions = new FormOptions(this);
            FormOptions.Show();
        }
示例#3
0
 private void OnOptions(object sender, EventArgs e)
 {
     if (FormOptions != null)
     {
         FormOptions.BringToFront();
         FormOptions.Focus();
         return;
     }
     if (FormDisplay != null || FormCollection != null)
     {
         MessageBox.Show(Local.MsgShouldExit, "glnk", MessageBoxButtons.OK, MessageBoxIcon.Information);
         return;
     }
     ReadOptions("pens.ini");
     ReadOptions("config.ini");
     ReadOptions("hotkeys.ini");
     FormOptions = new FormOptions(this);
     FormOptions.Show();
 }