예제 #1
0
        private void BtnAddGt_Click(object sender, EventArgs e)
        {
            FmSzcFormula fm = new FmSzcFormula();

            fm.SelectValue += (obj) =>
            {
                RanageFormula info = obj as RanageFormula;
                mDataGridGt.AddItem <RanageFormula>(info);
            };
            fm.ShowDialog();
        }
예제 #2
0
        private void BtnEditGt_Click(object sender, EventArgs e)
        {
            if (mDataGridGt.CurrentRow == null)
            {
                return;
            }
            RanageFormula old = mDataGridGt.GetCurrentEntity() as RanageFormula;

            FmSzcFormula fm = new FmSzcFormula(old);

            fm.SelectValue += (obj) =>
            {
                RanageFormula info = obj as RanageFormula;
                mDataGridGt.EditCurrentItem <RanageFormula>(info);
            };
            fm.ShowDialog();
        }