예제 #1
0
        void ButtonAddMoneyTypeClick(object sender, EventArgs e)
        {
            //新收支项
            FormMoneyType tF = new FormMoneyType();

            tF.Text = "收支信息-新增";
            tF.ShowDialog();
            RefreshMoneyType();
        }
예제 #2
0
 void ButtonModifyMonetTypeClick(object sender, EventArgs e)
 {
     //修改
     if (dataGridViewMoneyType.CurrentRow != null)
     {
         FormMoneyType tF = new FormMoneyType();
         tF.i_MoneyTypeID = Convert.ToInt32(dataGridViewMoneyType.CurrentRow.Cells[0].Value.ToString());
         tF.Text          = "收支信息-修改";
         tF.ShowDialog();
     }
     else
     {
         MessageBox.Show("请选择要修改的收支项目!", "提示信息", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
     RefreshMoneyType();
 }