private void buttonSyncTroubleshoot_Click(object sender, EventArgs e) { if (Config.LoadSafe().IsSyncConfigured) { SyncWizard.Troubleshooting(_machineWide, this); } else { Msg.Inform(this, Resources.SyncCompleteSetupFirst, MsgSeverity.Warn); } }
private void buttonSync_Click(object sender, EventArgs e) { if (IsSyncConfigValid()) { Program.RunCommand(_machineWide, SyncApps.Name); } else { SyncWizard.Setup(_machineWide, this); } }
private async void buttonSync_Click(object sender, EventArgs e) { if (Config.LoadSafe().IsSyncConfigured) { await Program.RunCommandAsync(_machineWide, SyncApps.Name); } else { SyncWizard.Setup(_machineWide, this); } }
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); }
/// <summary> /// Runs the Sync Troubleshooting wizard. /// </summary> /// <param name="machineWide">Configure Sync for machine-wide data instead of just for the current user.</param> /// <param name="owner">The parent window the displayed window is modal to; can be <c>null</c>.</param> public static void Troubleshooting(bool machineWide, IWin32Window?owner = null) { using var wizard = new SyncWizard(machineWide, troubleshooting: true); wizard.ShowDialog(owner); }
/// <summary> /// Runs the Sync Setup wizard. /// </summary> /// <param name="machineWide">Configure Sync for machine-wide data instead of just for the current user.</param> /// <param name="owner">The parent window the displayed window is modal to; can be <c>null</c>.</param> public static void Setup(bool machineWide, IWin32Window?owner = null) { using var wizard = new SyncWizard(machineWide); wizard.ShowDialog(owner); }
/// <summary> /// Runs the Sync Troubleshooting wizard. /// </summary> /// <param name="machineWide">Configure Sync for machine-wide data instead of just for the current user.</param> /// <param name="owner">The parent window the displayed window is modal to; can be <c>null</c>.</param> public static void Troubleshooting(bool machineWide, [CanBeNull] IWin32Window owner = null) { using (var wizard = new SyncWizard(machineWide, troubleshooting: true)) wizard.ShowDialog(owner); }
/// <summary> /// Runs the Sync Setup wizard. /// </summary> /// <param name="machineWide">Configure Sync for machine-wide data instead of just for the current user.</param> /// <param name="owner">The parent window the displayed window is modal to; can be <c>null</c>.</param> public static void Setup(bool machineWide, [CanBeNull] IWin32Window owner = null) { using (var wizard = new SyncWizard(machineWide)) wizard.ShowDialog(owner); }