Пример #1
0
        private void btnAdd_Click(object sender, System.EventArgs e)
        {
            AddTellerForm frm = new AddTellerForm();
            //frm.IsNew = true;
            //frm.Teller = new Teller();
            if (DialogResult.OK != frm.ShowDialog()) return;

            ServicesProvider.GetInstance().GetTellerServices().Add(frm.Teller);
            LoadTellers();
        }
Пример #2
0
        private void btnAdd_Click(object sender, System.EventArgs e)
        {
            AddTellerForm frm = new AddTellerForm();

            //frm.IsNew = true;
            //frm.Teller = new Teller();
            if (DialogResult.OK != frm.ShowDialog())
            {
                return;
            }

            ServicesProvider.GetInstance().GetTellerServices().Add(frm.Teller);
            LoadTellers();
        }
Пример #3
0
        private void Edit()
        {
            Teller teller = olvTellers.SelectedObject as Teller;

            Debug.Assert(teller != null, "Teller not selected!");
            AddTellerForm frm = new AddTellerForm(teller);

            //frm.IsNew = false;
            //frm.Teller = teller;
            if (DialogResult.OK != frm.ShowDialog())
            {
                return;
            }

            ServicesProvider.GetInstance().GetTellerServices().Update(teller);

            olvTellers.RefreshSelectedObjects();
        }
Пример #4
0
        private void Edit()
        {
            Teller teller = olvTellers.SelectedObject as Teller;
            Debug.Assert(teller != null, "Teller not selected!");
            AddTellerForm frm = new AddTellerForm(teller);
            //frm.IsNew = false;
            //frm.Teller = teller;
            if (DialogResult.OK != frm.ShowDialog()) return;

            ServicesProvider.GetInstance().GetTellerServices().Update(teller);

            olvTellers.RefreshSelectedObjects();
        }