Exemple #1
0
        private void BtnSave_Click(object sender, RoutedEventArgs e)
        {
            BaseProductEdit win = new BaseProductEdit();

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