MainForm.cs
上传用户:linger1010
上传日期:2008-12-08
资源大小:561k
文件大小:1k
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Text;
- using System.Windows.Forms;
- using Microsoft.WindowsCE.Forms;
- namespace ControllingSIP
- {
- public partial class MainForm : Form
- {
- InputPanel m_sip;
- public MainForm()
- {
- InitializeComponent();
- m_sip = new InputPanel();
- m_sip.EnabledChanged += new EventHandler(m_sip_EnabledChanged);
- foreach(InputMethod im in m_sip.InputMethods)
- m_cmbInputMethods.Items.Add(im.Name);
- }
- void m_sip_EnabledChanged(object sender, EventArgs e)
- {
- m_chkOpenSIP.Checked = m_sip.Enabled;
- }
- private void m_chkOpenSIP_CheckStateChanged(object sender, EventArgs e)
- {
- m_sip.Enabled = m_chkOpenSIP.Checked;
- }
- private void m_cmbInputMethods_SelectedIndexChanged(object sender, EventArgs e)
- {
- m_sip.CurrentInputMethod = m_sip.InputMethods[m_cmbInputMethods.SelectedIndex];
- }
- }
- }