Inheritance: System.Windows.Forms.Form
 private void buttonSyncTroubleshoot_Click(object sender, EventArgs e)
 {
     if (Config.LoadSafe().IsSyncConfigured)
     {
         SyncWizard.Troubleshooting(_machineWide, this);
     }
     else
     {
         Msg.Inform(this, Resources.SyncCompleteSetupFirst, MsgSeverity.Warn);
     }
 }
Exemple #2
0
 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);
     }
 }
Exemple #4
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);
        }
Exemple #5
0
 /// <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);
 }
Exemple #6
0
 /// <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);
 }
Exemple #7
0
 /// <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);
 }
Exemple #8
0
 /// <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);
 }
Exemple #9
0
 /// <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);
 }
Exemple #10
0
 /// <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);
 }