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

Setup() public static méthode

Runs the Sync Setup wizard.
public static Setup ( 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 Setup(bool machineWide, [CanBeNull] IWin32Window owner = null)
        {
            using (var wizard = new SyncWizard(machineWide))
                wizard.ShowDialog(owner);
        }

Usage Example

 private async void buttonSync_Click(object sender, EventArgs e)
 {
     if (Config.LoadSafe().IsSyncConfigured)
     {
         await Program.RunCommandAsync(_machineWide, SyncApps.Name);
     }
     else
     {
         SyncWizard.Setup(_machineWide, this);
     }
 }
All Usage Examples Of ZeroInstall.Central.WinForms.SyncWizard::Setup