ZeroInstall.Central.WinForms.SyncWizard.Troubleshooting C# (CSharp) Method

Troubleshooting() public static method

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.
return void
        public static void Troubleshooting(bool machineWide, [CanBeNull] IWin32Window owner = null)
        {
            using (var wizard = new SyncWizard(machineWide, troubleshooting: true))
                wizard.ShowDialog(owner);
        }

Usage Example

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