Exemplo n.º 1
0
        private void DirectoryTargeterDirectoriesSelected(object sender, DirectoriesSelectedEventArgs e)
        {
            if (e.SelectedFiles.Count == 0)
            {
                MessageBox.Show(
                    Localisable.NukeWindow_NoFilesSelected_Message,
                    Localisable.NukeWindow_NoFilesSelected_Title, MessageBoxButtons.OK, MessageBoxIcon.Warning);
                return;
            }

            OnDirectoriesSelected(e);
        }
Exemplo n.º 2
0
 protected virtual void OnDirectoriesSelected(DirectoriesSelectedEventArgs e)
 {
     DialogResult = DialogResult.OK;
     Close();
     DirectoriesSelected?.Invoke(this, e);
 }