Example #1
0
        private void BtnAddSalary_Click(object sender, EventArgs e)
        {
            FmRanageFormula fm = new FmRanageFormula();

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

            FmRanageFormula fm = new FmRanageFormula(old);

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