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()); }
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(); }
public THCInterfaceHandler(frmTHCInterface parent) { parentForm = parent; portOpen = false; serialPortName = ""; }