예제 #1
0
 private void btnStart_Click(object sender, RoutedEventArgs e)
 {
     this.SetStartBtn(false);
     ServerConfigService.LastId = (int)this.cbServerConfig.SelectedValue;
     if (this.isNetworkAdapterReady)
     {
         this.LaunchForwarding(this.isNetworkAdapterReady);
         return;
     }
     NetworkAdapterInstaller.CheckAndInstallAdapter(new Action <bool>(this.LaunchForwarding));
 }
예제 #2
0
 private void btnStart_Click(object sender, RoutedEventArgs e)
 {
     SetStartBtn(false);
     ServerConfigService.LastId = (int)cbServerConfig.SelectedValue;
     if (isNetworkAdapterReady)
     {
         LaunchForwarding(isNetworkAdapterReady);
     }
     else
     {
         NetworkAdapterInstaller.CheckAndInstallAdapter(LaunchForwarding);
     }
 }