Exemplo n.º 1
0
        private void BtnSave_Click(object sender, RoutedEventArgs e)
        {
            RightEdit win = new RightEdit();

            win.SaveComplete += (model) =>
            {
                BandGridData();
                MessageBox.Show("保存" + model.F_Name + "成功!");
            };
            win.ShowDialog();
        }
Exemplo n.º 2
0
        private void BtnUpdate_Click(object sender, RoutedEventArgs e)
        {
            DataRow row = (this.TreeControl.GetDataRow() as TreeNodeInfo).Tag as DataRow;

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