/// <summary> /// Выбора папки для сохранения скаченного файла /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void ButtonSelectFolder_Click(object sender, EventArgs e) { if (_folderBrowserDialog.ShowDialog() == DialogResult.OK) { FolderSelected?.Invoke(null, _folderBrowserDialog.SelectedPath); } }
private void OnTextChanged(object sender, EventArgs e) { var textBox = (System.Windows.Controls.TextBox)sender; FolderPath = textBox.Text; FolderSelected?.Invoke(this, EventArgs.Empty); }
protected override void CustomInputHandle(ConsoleKey key) { if (key == ConsoleKey.Spacebar) { SelectedFolder = currentPath; FolderSelected?.Invoke(this, SelectedFolder); Close(); } else { pagedMenu.UpdateInput(key); Invalidate(false); } }
public void UpdateInput(ConsoleKey key) { if (key == ConsoleKey.Escape) { Show = false; } if (key == ConsoleKey.Spacebar) { SelectedFolder = currentPath; Show = false; FolderSelected?.Invoke(this, SelectedFolder); } else { menu.UpdateInput(key); } }
public void OnDirectoryChosen(string folderSelectionPath) { FolderSelected?.Invoke(folderSelectionPath); }
private void Raise_FolderSelected(TreeViewFolderItem folderItem) { FolderSelected?.Invoke(this, new FolderSelectedEventArgs(folderItem)); }