Beispiel #1
0
 public string ConnectToTHC(frmTHCInterface myParent)
 {
     this.Left = myParent.Location.X + ((myParent.Width - this.Width) / 2);
     this.Top  = myParent.Location.Y + ((myParent.Height - this.Height) / 2);
     refreshPorts();
     this.ShowDialog();
     return(cboPorts.SelectedItem.ToString());
 }
Beispiel #2
0
 public string ConnectToTHC(frmTHCInterface myParent)
 {
     this.Left = myParent.Location.X + ((myParent.Width - this.Width) / 2);
     this.Top = myParent.Location.Y + ((myParent.Height - this.Height) / 2);
     refreshPorts();
     this.ShowDialog();
     return cboPorts.SelectedItem.ToString();
 }
Beispiel #3
0
 public THCInterfaceHandler(frmTHCInterface parent)
 {
     parentForm     = parent;
     portOpen       = false;
     serialPortName = "";
 }
 public THCInterfaceHandler(frmTHCInterface parent)
 {
     parentForm = parent;
     portOpen = false;
     serialPortName = "";
 }