Beispiel #1
0
 public static SoftPanelGlobalInfo GetInstance()
 {
     if (null == _instance)
     {
         _instance = new SoftPanelGlobalInfo();
     }
     return(_instance);
 }
Beispiel #2
0
 public OscilloscopeTask(DsaSoftPanelForm parentForm)
 {
     _globalInfo              = SoftPanelGlobalInfo.GetInstance();
     _showErrMethod           = parentForm.ShowErrorMsg;
     _taskThread              = new Thread(TaskWork);
     _taskThread.IsBackground = true;
     this._parentForm         = parentForm;
     _taskThread.Start();
 }
Beispiel #3
0
        public DsaSoftPanelForm()
        {
            InitializeComponent();
            //强制刷新Tab页面的背景色
            txTabControl_channel.BackColor = Color.FromArgb(64, 64, 64);

            _globalInfo             = SoftPanelGlobalInfo.GetInstance();
            _titleMouseDownPosition = Point.Empty;
            _showMeasurePanel       = false;
            _showFunctionPanel      = false;
            RefreshMeasureAndFunctionPanel();
            AddMoveWindowEvent();
            InitFunctionRadioButtonTag();
            InitMeasureCheckBoxTag();
            //填充测量和函数面板
            panel_measure.Dock  = DockStyle.Fill;
            panel_function.Dock = DockStyle.Fill;
        }
Beispiel #4
0
 public DsaBoardConnectForm()
 {
     InitializeComponent();
     _globalInfo = SoftPanelGlobalInfo.GetInstance();
 }
 public static SoftPanelGlobalInfo GetInstance()
 {
     return(_instance ?? (_instance = new SoftPanelGlobalInfo()));
 }
Beispiel #6
0
 public OscilloscopeTask(DsaSoftPanelForm parentForm)
 {
     _globalInfo      = SoftPanelGlobalInfo.GetInstance();
     this._parentForm = parentForm;
 }