Exemple #1
0
 private void showHideHandwritingInputToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (hw == null)
     {
         hw = new HWPan();
         hw.setHandle(this);
         hw.SetActiveLayout(kl);
         hw.SetActiveScript(kp);
         hw.Show();
     }
     else
     {
         hw.Close();
         hw.Dispose();
         hw = null;
     }
 }
Exemple #2
0
        private void UpdateScript(string p)
        {
            MethodInvoker mk = delegate
            {
                kp = new KeyProcessor(p);
                iop.SetKPR(kp);
                if (kl != null)
                {
                    if (hw != null)
                    {
                        hw.SetActiveScript(kp);
                    }
                }
                else if (kime != null)
                {
                    imp.Reset(kime, iop);
                }
                cfg.Write("script", p);
            };

            scrbtn.Text    = p;
            scrbtn.Enabled = false;
            mk.BeginInvoke(UpdateScriptCB, null);
            if (!donwarn)
            {
                if (p == "ZawGyi" || p == "XPartial")
                {
                    Warning w = new Warning();
                    w.SetText(p);
                    w.Show();
                    w.Top   = this.Top - 28;
                    w.Left  = this.Left;
                    w.Width = this.Width;
                }
            }
            else
            {
                donwarn = false;
            }
        }
Exemple #3
0
 private void showHideHandwritingInputToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (hw == null)
     {
         hw = new HWPan();
         hw.setHandle(this);
         hw.SetActiveLayout(kl);
         hw.SetActiveScript(kp);
         hw.Show();
     }
     else
     {
         hw.Close();
         hw.Dispose();
         hw = null;
     }
 }