using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Text; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; using DevExpress.XtraEditors; namespace Uninpho.Railway.Waveform { public partial class RightLabelControl : DevExpress.XtraEditors.XtraUserControl { public PanelControl move_Panel; DrawCrl frmm; MessageFrm messfrm; CoorListClass mess; public RightLabelControl() { InitializeComponent(); } public RightLabelControl(CoorListClass mess, DrawCrl frm) { InitializeComponent(); this.frmm = frm; this.mess = mess; move_Panel = movePanel; simpleButton1.Text = mess.ListName; separatorControl1.LineColor = Color.FromArgb(mess.RGBA[3], mess.RGBA[0], mess.RGBA[1], mess.RGBA[2]); } /// /// 双击修改信息 /// private void simpleButton1_DoubleClick(object sender, EventArgs e) { messfrm = new MessageFrm(mess, frmm, this); messfrm.StartPosition = FormStartPosition.CenterParent; messfrm.ShowDialog(); } public void changeRGBLine(int r, int g, int b, int a) { separatorControl1.LineColor = Color.FromArgb(a, r, g, b); } public void changeLabelValue(string str) { labelControl1.Text = str; } } }