//glove controller class for all access to glove api // private GloveController gc; public MainWindow() { InitializeComponent(); InitModule(); InitGame(); csm = ControlServerManage.GetInstance(cbb_port, lbl_gloveStatus); }
public static ControlServerManage GetInstance(ComboBox pbb_port, Label gloveStatus) { if (instance == null) { lbl_gloveStatus = gloveStatus; cbb_port = pbb_port; instance = new ControlServerManage(); } return(instance); }