ZeroInstall.Central.WinForms.SyncWizard.Troubleshooting C# (CSharp) Méthode

Troubleshooting() public static méthode

Runs the Sync Troubleshooting wizard.
public static Troubleshooting ( bool machineWide, [ owner = null ) : void
machineWide bool Configure Sync for machine-wide data instead of just for the current user.
owner [ The parent window the displayed window is modal to; can be null.
Résultat void
        public static void Troubleshooting(bool machineWide, [CanBeNull] IWin32Window owner = null)
        {
            using (var wizard = new SyncWizard(machineWide, troubleshooting: true))
                wizard.ShowDialog(owner);
        }

Usage Example

 private void buttonSyncTroubleshoot_Click(object sender, EventArgs e)
 {
     if (Config.LoadSafe().IsSyncConfigured)
     {
         SyncWizard.Troubleshooting(_machineWide, this);
     }
     else
     {
         Msg.Inform(this, Resources.SyncCompleteSetupFirst, MsgSeverity.Warn);
     }
 }