private void SetupPluginProfile(VpnPlugInProfile profile) { if (profile == null) { return; } uiType.Text = "Plugin"; try { var connectionStatus = profile.ConnectionStatus; uiStatus.Text = StatusIcons[(int)connectionStatus]; uiPackage.Text = profile.VpnPluginPackageFamilyName; } catch (Exception ex) { uiStatus.Text = "!!"; Log($"ERROR: can't get connection status {ex.Message} :-("); } }
private void button_Click(object sender, RoutedEventArgs e) { VpnManagementAgent vma = new VpnManagementAgent(); VpnPlugInProfile profile = new VpnPlugInProfile(); }