private void colorSchemesListView_MouseDoubleClick(object sender, MouseButtonEventArgs e) { object item = ListViewBaseInfo.GetElementFromPoint((ItemsControl)sender, e.GetPosition((ItemsControl)sender)); if (item != null) { editorScheme(); } }
private void renamingMenu_Click(object sender, MouseButtonEventArgs e) { object item = ListViewBaseInfo.GetElementFromPoint((ItemsControl)sender, e.GetPosition((ItemsControl)sender)); if (item != null) { renamingRadarArea(); } }
private void radarsListView_MouseDoubleClick(object sender, System.Windows.Input.MouseButtonEventArgs e) { object item = ListViewBaseInfo.GetElementFromPoint((ItemsControl)sender, e.GetPosition((ItemsControl)sender)); if (item != null) { _radarsInfo.CenteredRadar(); } }
private void sourceListView_MouseDoubleClick(object sender, MouseButtonEventArgs e) { Point pt = e.GetPosition((ItemsControl)sender); object item = ListViewBaseInfo.GetElementFromPoint((ItemsControl)sender, pt); if (item != null) { int columnIndex = getColumnIndex(pt.X); if (columnIndex == 2) { settingBox(sourceListView.SelectedIndex); } else if (columnIndex == 5) { updateRemarks(sourceListView.SelectedIndex); } } }