private void BtSearch_Click(object sender, RoutedEventArgs e) { GLSearch w = new GLSearch(); w.ShowDialog(); if (w.myGL != null) { DataContext = w.myGL; } }
private void BtSelectGL_Click(object sender, RoutedEventArgs e) { GLSearch w = new GLSearch(); w.Owner = this; w.ShowDialog(); GLDistribution dist = dgTransaction.SelectedItems.OfType <GLDistribution>().First(); if (w.myGL != null) { dist.GL = w.myGL; dist.ActNmbr = dist.GL.ActNmbr; dist.ActIndx = dist.GL.ActIndx; dgTransaction.Items.Refresh(); } }