using System; namespace TProduct.WinFrmUI { public partial class SetLineStyleDlg : DevExpress.XtraEditors.XtraForm { public SetLineStyleDlg() { InitializeComponent(); //if (TProduct.UserSetting.Localization.Current == Eventech.Model.eLocalizationType.enUS) //{ // comboBoxEdit1.Properties.Items.Add("Solid"); // comboBoxEdit1.Properties.Items.Add("Dash"); // comboBoxEdit1.Properties.Items.Add("Dot"); // comboBoxEdit1.Properties.Items.Add("DashDot"); // comboBoxEdit1.Properties.Items.Add("DashDotDot"); //} //else //{ // comboBoxEdit1.Properties.Items.Add("实线"); // comboBoxEdit1.Properties.Items.Add("虚线"); // comboBoxEdit1.Properties.Items.Add("点线"); // comboBoxEdit1.Properties.Items.Add("点划线"); // comboBoxEdit1.Properties.Items.Add("双点划线"); //} } public DevExpress.XtraCharts.DashStyle DashStyle { get { return (DevExpress.XtraCharts.DashStyle)(comboBoxEdit1.SelectedIndex + 1); } set { comboBoxEdit1.SelectedIndex = (int)value - 1; } } private void simpleButton2_Click(object sender, EventArgs e) { this.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.Close(); } private void simpleButton1_Click(object sender, EventArgs e) { this.DialogResult = System.Windows.Forms.DialogResult.OK; this.Close(); } private void SetContentDlg_Load(object sender, EventArgs e) { } } }