public bool ShowLabDesign(LabModuleDesign labDesign, IWin32Window owner) { _isOk = false; _labDesign = labDesign; this.ShowDialog(owner); return(_isOk); }
protected override void ReloadCustomDesign(string customContext) { if (string.IsNullOrEmpty(customContext)) { return; } _labDesign = JsonHelper.DeserializeObject <LabModuleDesign>(customContext); LoadDesign(); }
public LabControl() { InitializeComponent(); _labDesign = new LabModuleDesign(); _labDesign.BackColor = this.BackColor; _labDesign.ForeColor = this.ForeColor; _labDesign.FontName = this.Font.Name; _labDesign.IsBold = this.Font.Bold; _labDesign.IsItalic = this.Font.Italic; _labDesign.FontSize = this.Font.Size; _labDesign.LabText = ""; _labDesign.UseDrag = false; }