private void btn_AddTarget_Click(object sender, RoutedEventArgs e) { TTargetDetail t = new TTargetDetail(); t.ShowDialog(); if (t.GetModifyFlag()) { this.memberData.Add(t.TargetDetail); OrderTarget(); } }
private void ttData_MouseDoubleClick(object sender, MouseButtonEventArgs e) { TTarget drv = dg_tt.SelectedItem as TTarget; if (null == drv) { return; } TTargetDetail t = new TTargetDetail(); t.TargetDetail = drv; t.ShowDialog(); if (t.GetModifyFlag()) { //drv = t.TargetDetail; //this.memberData.Remove(drv); //this.memberData.Add(t.TargetDetail); OrderTarget(); } }