Пример #1
0
        private void new_Click_1(object sender, RoutedEventArgs e)
        {
            currentItem = null;
            FileEdit window = new FileEdit(this);

            window.WindowStartupLocation = WindowStartupLocation.CenterScreen;
            window.ShowDialog();
        }
Пример #2
0
        private void edit_Click_1(object sender, RoutedEventArgs e)
        {
            TblFgwj item = (TblFgwj)dataGrid.SelectedItem;

            if (item == null)
            {
                MessageBox.Show("请选择数据行");
                return;
            }

            currentItem = new TblFgwj();
            ObjectUtils.copyObjectValues(item, currentItem);

            FileEdit window = new FileEdit(this);

            window.WindowStartupLocation = WindowStartupLocation.CenterScreen;
            if (window.ShowDialog() == true)
            {
            }
        }