protected override void OnStateStarted() { base.OnStateStarted(); Slave.Connect("mouse_entered", this, nameof(OnMouseEntered)); Slave.Connect("mouse_exited", this, nameof(OnMouseExited)); Slave.Connect(nameof(Unit.Clicked), this, nameof(OnClicked)); }
private void MenuConnect_Click(object sender, RoutedEventArgs e) { if (SrvTree.SelectedItem is TVISrvRoot Root) { Root.Connect(); } else if (SrvTree.SelectedItem is TVISrvSlave Slave) { Slave.Connect(); } RefreshSrvInfo(SrvTree.SelectedItem); }
public void Start() { Master?.Connect(); Slave?.Connect(); Third?.Connect(); }