Exemplo n.º 1
0
        private void buttonAddRootPath_Click(object sender, EventArgs e)
        {
            RootPathForm rootPathForm = new RootPathForm(_settingsWorker, null);

            if (rootPathForm.ShowDialog(this) == DialogResult.OK)
            {
                _settingsWorker.AddRootPath(rootPathForm.RootPath);
            }
        }
Exemplo n.º 2
0
 private void listViewRootPath_DoubleClick(object sender, EventArgs e)
 {
     if (listViewRootPath.SelectedItems.Count == 1)
     {
         RootPath     selectedRootPath = (RootPath)listViewRootPath.SelectedItems[0].Tag;
         RootPathForm rootPathForm     = new RootPathForm(_settingsWorker, selectedRootPath);
         if (rootPathForm.ShowDialog(this) == DialogResult.OK)
         {
             _settingsWorker.UpdateRootPath();
         }
     }
 }