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));
 }
Exemple #2
0
 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);
 }
Exemple #3
0
 public void Start()
 {
     Master?.Connect();
     Slave?.Connect();
     Third?.Connect();
 }