Exemplo n.º 1
0
        private void ShowConfigDialog()
        {
            ConfigWindow dlg = new ConfigWindow(_sys);

              _sys.StopMonitoring();

              if( dlg.ShowDialog() == true ) {
            RestartSystem();

              } else _sys.StartMonitoring();
        }
        private void btnOpenConfig_Click(object sender, RoutedEventArgs e)
        {
            ConfigWindow dlg = new ConfigWindow(_sys, true);
              dlg.Owner = this;

              if( dlg.ShowDialog() == true ) {
            _asmPath = _sys.Config.CommandsAssemblyPaths;

            BindCommands();
              }
        }
        private void ShowConfigDialog()
        {
            ConfigWindow dlg = new ConfigWindow(_sys);

              if( dlg.ShowDialog() == true ) {
            RestartSystem();
              }
        }
    private void btnOpenConfig_Click(object sender, RoutedEventArgs e) {
      var changeAsmPath = Convert.ToBoolean((sender as Button).Tag);
      
      ConfigWindow dlg = new ConfigWindow(_sys, changeAsmPath);
      dlg.Owner = this;

      if( dlg.ShowDialog() == true ) {
        _asmPath = _sys.Config.CurrentServer.CommandsAssemblyPaths;
        
        BindServer();
        BindCommands();
      }
    }