using System;
using System.Collections.Generic;
using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using DevExpress.XtraEditors; namespace WinLZDAGLFrom.xtgl{ public partial class FrmSRFSZ : DevExpress.XtraEditors.XtraForm { public FrmSRFSZ() { InitializeComponent(); } private void button2_Click(object sender, EventArgs e) { this.Close(); } private void button1_Click(object sender, EventArgs e) { if (comboBox1.Text != "") { InputLanguage currentLanguage = InputLanguage.InstalledInputLanguages[comboBox1.SelectedIndex]; InputLanguage.CurrentInputLanguage = currentLanguage; MessageBox.Show("输入法设置成功!", "信息", MessageBoxButtons.OK, MessageBoxIcon.Information); } this.Close(); } private void FrmSRFSZ_Load(object sender, EventArgs e) { foreach (InputLanguage language in InputLanguage.InstalledInputLanguages) { comboBox1.Items.Add(language.LayoutName); } } }}