示例#1
0
        private void actv_Click(object sender, EventArgs e)
        {
            active = !active;
            if (active)
            {
                //iop = new IOProcessor(kp);
                //iop.SetMainHandle(this);
                if (kl != null)
                {
                    //kime = null;
                    if (vk != null && autohide)
                    {
                        vk.Show();
                    }
                }
                else if (kime != null)
                {
                    imp.Reset(kime, iop);// = new IMEProcessor(kime,this, iop);
                }
                actv.BackColor = Color.DodgerBlue;
            }
            else
            {
                if (vk != null && autohide)
                {
                    vk.Hide();
                }
                if (hw != null && autohide)
                {
                    hw.Close();
                    hw.Dispose();
                    hw = null;
                }
                //iop = null;

                /*                if (imp != null)
                 *              {
                 *                  imp.Kill();
                 *                  imp = null;
                 *              }
                 */
                actv.BackColor = Color.Black;
                System.GC.Collect();
            }
            cfg.Write("active", active.ToString());
            servicetimer.Enabled = true;
        }
示例#2
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;
     }
 }
示例#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;
     }
 }
示例#4
0
 private void actv_Click(object sender, EventArgs e)
 {
     active = !active;
     if (active)
     {
         //iop = new IOProcessor(kp);
         //iop.SetMainHandle(this);
         if (kl != null)
         {
             //kime = null;
             if (vk != null && autohide)
                 vk.Show();
         }
         else if (kime != null)
         {
             imp.Reset(kime, iop);// = new IMEProcessor(kime,this, iop);
         }
         actv.BackColor = Color.DodgerBlue;
     }
     else
     {
         if (vk != null && autohide)
             vk.Hide();
         if (hw != null && autohide)
         {
             hw.Close();
             hw.Dispose();
             hw = null;
         }
         //iop = null;
         /*                if (imp != null)
                         {
                             imp.Kill();
                             imp = null;
                         }
         */
         actv.BackColor = Color.Black;
         System.GC.Collect();
     }
     cfg.Write("active", active.ToString());
     servicetimer.Enabled = true;
 }