Esempio n. 1
0
        public bool ShowLabDesign(LabModuleDesign labDesign, IWin32Window owner)
        {
            _isOk = false;

            _labDesign = labDesign;

            this.ShowDialog(owner);

            return(_isOk);
        }
Esempio n. 2
0
        protected override void ReloadCustomDesign(string customContext)
        {
            if (string.IsNullOrEmpty(customContext))
            {
                return;
            }

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

            LoadDesign();
        }
Esempio n. 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;
        }