Setup() публичный статический Метод

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.
Результат void
Пример #1
0
 private async void buttonSync_Click(object sender, EventArgs e)
 {
     if (Config.LoadSafe().IsSyncConfigured)
     {
         await Program.RunCommandAsync(_machineWide, SyncApps.Name);
     }
     else
     {
         SyncWizard.Setup(_machineWide, this);
     }
 }
Пример #2
0
 private void buttonSync_Click(object sender, EventArgs e)
 {
     if (IsSyncConfigValid())
     {
         Program.RunCommand(_machineWide, SyncApps.Name);
     }
     else
     {
         SyncWizard.Setup(_machineWide, this);
     }
 }
Пример #3
0
        private void buttonSyncSetup_Click(object sender, EventArgs e)
        {
            if (IsSyncConfigValid())
            {
                if (!Msg.YesNo(this, Resources.SyncReplaceConfigAsk, MsgSeverity.Warn, Resources.SyncReplaceConfigYes, Resources.SyncReplaceConfigNo))
                {
                    Program.RunCommand(Configure.Name, "--tab=sync");
                    return;
                }
            }

            SyncWizard.Setup(_machineWide, this);
        }