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; }
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); }
public void WyslijPrzelew(Interfejs konto, decimal kwota) { konto.WplacSrodki(kwota); WyplacSrodki(kwota); }
private void anulujButton_Click(object sender, EventArgs e) { Interfejs obiekt = obiektPropertyGrid.SelectedObject as Interfejs; obiekt.Przywroc(); }