Inheritance: System.Windows.Forms.Form
Exemplo n.º 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);
     }
 }
Exemplo n.º 2
0
 private void buttonSync_Click(object sender, EventArgs e)
 {
     if (IsSyncConfigValid())
     {
         Program.RunCommand(_machineWide, SyncApps.Name);
     }
     else
     {
         SyncWizard.Setup(_machineWide, this);
     }
 }
Exemplo n.º 3
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);
     }
 }
Exemplo n.º 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);
        }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }