private void btnNew_Click(object sender, RoutedEventArgs e) { frmActivityEdit frm = new frmActivityEdit(AtomCommonProperty, null); frm.ActivityDTOEditEvent += frm_ActivityDTOEditEvent; frm.Owner = Application.Current.MainWindow; frm.Show(); }
private void btnEdit_Click(object sender, RoutedEventArgs e) { int i = dtGridActivities.SelectedIndex; if (i < 0) { return; } ActivityDTONotify currActivityData = (ActivityDTONotify)dtGridActivities.Items[i]; frmActivityEdit frm = new frmActivityEdit(AtomCommonProperty, currActivityData.ActivityDTO); frm.ActivityDTOEditEvent += frm_ActivityDTOEditEvent; frm.Owner = Application.Current.MainWindow; frm.Show(); }
private void btnEdit_Click(object sender, RoutedEventArgs e) { int i = dtGridActivities.SelectedIndex; if (i < 0) return; ActivityDTONotify currActivityData = (ActivityDTONotify)dtGridActivities.Items[i]; frmActivityEdit frm = new frmActivityEdit(AtomCommonProperty, currActivityData.ActivityDTO); frm.ActivityDTOEditEvent += frm_ActivityDTOEditEvent; frm.Owner = Application.Current.MainWindow; frm.Show(); }
private void btnNew_Click(object sender, RoutedEventArgs e) { frmActivityEdit frm = new frmActivityEdit(AtomCommonProperty,null); frm.ActivityDTOEditEvent += frm_ActivityDTOEditEvent; frm.Owner = Application.Current.MainWindow; frm.Show(); }