示例#1
0
        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();
        }
示例#2
0
        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();
        }
示例#3
0
        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();
        }
示例#4
0
        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();
        }