public static SoftPanelGlobalInfo GetInstance() { if (null == _instance) { _instance = new SoftPanelGlobalInfo(); } return(_instance); }
public OscilloscopeTask(DsaSoftPanelForm parentForm) { _globalInfo = SoftPanelGlobalInfo.GetInstance(); _showErrMethod = parentForm.ShowErrorMsg; _taskThread = new Thread(TaskWork); _taskThread.IsBackground = true; this._parentForm = parentForm; _taskThread.Start(); }
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; }
public DsaBoardConnectForm() { InitializeComponent(); _globalInfo = SoftPanelGlobalInfo.GetInstance(); }
public static SoftPanelGlobalInfo GetInstance() { return(_instance ?? (_instance = new SoftPanelGlobalInfo())); }
public OscilloscopeTask(DsaSoftPanelForm parentForm) { _globalInfo = SoftPanelGlobalInfo.GetInstance(); this._parentForm = parentForm; }