示例#1
0
        public bool ShowLabDesign(LabModuleDesign labDesign, IWin32Window owner)
        {
            _isOk = false;

            _labDesign = labDesign;

            this.ShowDialog(owner);

            return(_isOk);
        }
示例#2
0
        protected override void ReloadCustomDesign(string customContext)
        {
            if (string.IsNullOrEmpty(customContext))
            {
                return;
            }

            _labDesign = JsonHelper.DeserializeObject <LabModuleDesign>(customContext);

            LoadDesign();
        }
示例#3
0
        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;
        }