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; }
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; } }
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; }