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