private void button2_Click(object sender, EventArgs e) { if (langIDs != null) { if (listBox1.SelectedIndex != -1) { TSFWrapper.ActiveInputMethodWithDesc(1028, (string)listBox1.SelectedItem); } } }
private void button1_Click(object sender, EventArgs e) { langIDs = TSFWrapper.GetLangIDs(); if (langIDs.Length > 0) { string[] list = TSFWrapper.GetInputMethodList(1028); foreach (string desc in list) { listBox1.Items.Add(desc); } } }
private void button4_Click(object sender, EventArgs e) { MessageBox.Show(TSFWrapper.GetCurrentInputMethodDesc(langIDs[0])); }
private void button3_Click(object sender, EventArgs e) { TSFWrapper.DeActiveInputMethod(1028); }