示例#1
0
        private void toolStripButtonEdit_Click(object sender, EventArgs e)
        {
            Call            call         = (Call)bindingSourceCalls.Current;
            FormAddEditCall editCallForm = new FormAddEditCall(call, user);

            if (editCallForm.ShowDialog() == DialogResult.OK)
            {
                CallsRepository callsRepository = new CallsRepository();
                callsRepository.Save(call);
                BindControls();
            }
        }
示例#2
0
        private void toolStripButtonAdd_Click(object sender, EventArgs e)
        {
            Call            call        = new Call();
            FormAddEditCall formAddCall = new FormAddEditCall(call, user);

            if (formAddCall.ShowDialog() == DialogResult.OK)
            {
                CallsRepository callsRepository = new CallsRepository();
                callsRepository.Save(call);
                BindControls();
            }
        }
示例#3
0
        private void toolStripButtonEdit_Click(object sender, EventArgs e)
        {
            Call call = (Call)bindingSourceCalls.Current;
            FormAddEditCall editCallForm = new FormAddEditCall(call, user);
            if (editCallForm.ShowDialog() == DialogResult.OK)
            {

                CallsRepository callsRepository = new CallsRepository();
                callsRepository.Save(call);
                BindControls();

            }
        }
示例#4
0
        private void toolStripButtonAdd_Click(object sender, EventArgs e)
        {
            Call call = new Call();
            FormAddEditCall formAddCall = new FormAddEditCall(call, user);
            if (formAddCall.ShowDialog() == DialogResult.OK)
            {

                    CallsRepository callsRepository = new CallsRepository();
                    callsRepository.Save(call);
                    BindControls();

            }
        }