Пример #1
0
        private void okButton_Click(object sender, EventArgs e)
        {
            Interfejs obiekt = obiektPropertyGrid.SelectedObject as Interfejs;

            /*if(false)if (obiekt.jestPoprawny() == false)
             * {
             *  MessageBox.Show(this, "UWAGA: obiekt nie jest poprawny");
             *  return;
             * }
             */
            this.Hide();
            this.DialogResult = DialogResult.OK;
        }
Пример #2
0
        public DataRepository(Interfejs interfejs)
        {
            dataContext = new DataContext();

            //ws.WypelnijListeKlientow(this);
            //ws.WypelnijSlownikFilmow(this);
            //ws.WypelnijKolekcjeWypozyczen(this);
            //ws.WypelnijListeOpisowStanow(this);

            interfejs.WypelnijListeKlientow(this);
            interfejs.WypelnijSlownikFilmow(this);
            interfejs.WypelnijKolekcjeWypozyczen(this);
            interfejs.WypelnijListeOpisowStanow(this);
        }
Пример #3
0
 public void WyslijPrzelew(Interfejs konto, decimal kwota)
 {
     konto.WplacSrodki(kwota);
     WyplacSrodki(kwota);
 }
Пример #4
0
        private void anulujButton_Click(object sender, EventArgs e)
        {
            Interfejs obiekt = obiektPropertyGrid.SelectedObject as Interfejs;

            obiekt.Przywroc();
        }