public static TXLaserModuleAPI instance() { if (TXLaserModuleAPI._instance == null) { TXLaserModuleAPI._instance = new TXLaserModuleAPI(); } return(TXLaserModuleAPI._instance); }
public TXLaserStartForm() { this.InitializeComponent(); this._txLaserModuleAPI = TXLaserModuleAPI.instance(); this._txLaserController = this._txLaserModuleAPI.GetControllerList[0]; this._txLaserController.Connect(); this.panel1.Controls.Add(this._txLaserController.View); }