/// <summary> /// Raises the row activated event. /// </summary> /// <param name="a">The alpha component.</param> protected virtual void OnRowActivated(ListViewRowEventArgs a) { if (rowActivated != null) { rowActivated(this, a); } }
void OnServerClicked(object sender, ListViewRowEventArgs e) { var server = serverStore.GetValue(e.RowIndex, serverField); using (var projectsDialog = new ChooseProjectsDialog(server)) { if (projectsDialog.Run(this) == Command.Ok && projectsDialog.SelectedProjects.Any()) { var selectedProjects = projectsDialog.SelectedProjects; server.ProjectCollections = new List<ProjectCollection>(selectedProjects.Select(x => x.Collection).Distinct()); server.ProjectCollections.ForEach(pc => pc.Projects = new List<ProjectInfo>(selectedProjects.Where(pi => pi.Collection == pc))); TFSVersionControlService.Instance.RaiseServersChange(); TFSVersionControlService.Instance.StorePrefs(); } } }
/// <summary> /// Raises the row activated event. /// </summary> /// <param name="a">The alpha component.</param> protected virtual void OnRowActivated (ListViewRowEventArgs a) { if (rowActivated != null) rowActivated (this, a); }
void PackagesListRowActivated (object sender, ListViewRowEventArgs e) { if (PackagesCheckedCount > 0) { AddPackagesButtonClicked (sender, e); } else { PackageViewModel packageViewModel = packageStore.GetValue (e.RowIndex, packageViewModelField); InstallPackage (packageViewModel); } }
void OnWorkItemClicked(object sender, ListViewRowEventArgs e) { var store = (ListStore)listView.DataSource; var workItem = store.GetValue(e.RowIndex, workItemField); if (OnSelectWorkItem != null) OnSelectWorkItem(workItem); }
void PackagesListRowActivated(object sender, ListViewRowEventArgs e) { if (PackagesCheckedCount > 0) { AddPackagesButtonClicked (sender, e); } else { PackageViewModel packageViewModel = packageStore.GetValue (e.RowIndex, packageViewModelField); packagesToAdd = GetPackagesToAdd (new [] { packageViewModel }); Close (); } }
protected void ListView1_RowActivated(object sender, ListViewRowEventArgs e) { EditRow(e.RowIndex); }