Exemple #1
0
 private void ChkAutoStart_Click(object sender, RoutedEventArgs e)
 {
     if (chkAutoStart.IsChecked.HasValue && chkAutoStart.IsChecked.Value)
     {
         _registryManager.AddApplicationInStartup(StaticResources.AppName);
     }
     else if (_registryManager.IsApplicationInStartup(StaticResources.AppName))
     {
         _registryManager.RemoveApplicationFromStartup(StaticResources.AppName);
     }
 }