private void ListFiles_SelectedIndexChanged(object sender, EventArgs e) { if (listFiles.SelectedIndex >= 0) { m_selectedFilename = listFiles.SelectedItem as string; var args = new FileSelectedArgs(this.SelectedPath, SelectedFilename); SelectedFileChanged?.Invoke(this, args); } }
private void Files_OnMouseUp(object sender, MouseButtonEventArgs e) { if (Equals(stagedFiles, sender)) { unstagedFiles.SelectedItem = null; } else { stagedFiles.SelectedItem = null; } SelectedFileChanged?.Invoke(ViewModel.SelectedFileContent); }
private void FireSelectedFileChanged(string oldPath, string newPath) { SelectedFileChanged?.Invoke(oldPath, newPath); }
private void OnSelectedFileChanged(Ear <string> ear, string oldValue, string newValue) { SelectedFileChanged?.Invoke(ViewModel.SelectedFileContent); }
private void Files_OnMouseUp(object sender, MouseButtonEventArgs e) { SelectedFileChanged?.Invoke(ViewModel.SelectedFileContent); }
private void OnSelectedFileChanged(CloudFile file) { SelectedFileChanged?.Invoke(file); }
private void OnSelectedFileChanged() { SelectedFileChanged?.Invoke(this, EventArgs.Empty); }
private void OnSelectedValueChanged(object sender, EventArgs e) { SelectedFileChanged?.Invoke(this, new FileSystemEntryEventArgs((FileSystemEntry)_listBox.SelectedValue)); }