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)); }
private void btnStart_Click(object sender, RoutedEventArgs e) { SetStartBtn(false); ServerConfigService.LastId = (int)cbServerConfig.SelectedValue; if (isNetworkAdapterReady) { LaunchForwarding(isNetworkAdapterReady); } else { NetworkAdapterInstaller.CheckAndInstallAdapter(LaunchForwarding); } }