Exemplo n.º 1
0
        private void DeleteButtonClicked(object sender, RoutedEventArgs e)
        {
            var index = directoriesListBox.SelectedIndex;

            if (index != -1)
            {
                _directories.RemoveAt(index);
                AppManagement.SaveSettings();
                RefreshListBox();
            }
        }
Exemplo n.º 2
0
        private void AddButtonClicked(object sender, RoutedEventArgs e)
        {
            SynchronizedDirectory dir = new SynchronizedDirectory();

            dir.name = nameTextBox.Text;
            dir.path = locationTextBox.Text;

            _directories.Add(dir);
            AppManagement.SaveSettings();

            AddToListBox(dir.name);
        }
Exemplo n.º 3
0
 private void ChangeAutoSynchronizeStatus()
 {
     if (!AppManagement.backgroundProcessing)
     {
         AppManagement.AutoSynchronize(notifyIcon);
         autoSynchronizeButton.Content = "Disable Auto Synchronize";
     }
     else
     {
         AppManagement.backgroundProcessing = false;
         autoSynchronizeButton.Content      = "Enable Auto Synchronize";
     }
 }