private void dataGridView_DoubleClick(object sender, EventArgs e) { var row = dataGridView.Rows[dataGridView.CurrentRow.Index]; var symbol = new Symbol { Name = row.Cells["Symbol"].Value.ToString(), Exchange = row.Cells["Exchange"].Value.ToString() }; OnSymbolClick?.Invoke(symbol); }
/// <summary> /// 让窗口消失的方法 -wzp /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void SymbolIcon_Tapped(object sender, TappedRoutedEventArgs e) { DismissWindow(); SymbolClick?.Invoke(this, e); }