예제 #1
0
        private void BtnSave_Click(object sender, RoutedEventArgs e)
        {
            BasePaymentEdit win = new BasePaymentEdit();

            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());
                BasePaymentEdit win = new BasePaymentEdit();
                win.LoadData(id);
                win.SaveComplete += (model) =>
                {
                    BandGridData();
                    MessageBox.Show("保存" + model.F_Name + "成功!");
                };
                win.ShowDialog();
            }
        }