コード例 #1
0
        private void BtnSave_Click(object sender, RoutedEventArgs e)
        {
            EmployeeEdit win = new EmployeeEdit();

            win.SaveComplete += (model) =>
            {
                BandGridData();
                MessageBox.Show("保存" + model.F_Name + "成功!");
            };
            win.ShowDialog();
        }
コード例 #2
0
        private void BtnUpdate_Click(object sender, RoutedEventArgs e)
        {
            DataRow row = this.GridView.GetFocusedDataRow();

            if (row != null)
            {
                int          id  = int.Parse(row["F_ID"].ToString());
                EmployeeEdit win = new EmployeeEdit();
                win.LoadData(id);
                win.SaveComplete += (model) =>
                {
                    BandGridData();
                    MessageBox.Show("保存" + model.F_Name + "成功!");
                };
                win.ShowDialog();
            }
        }