public TrypForm(Tryp tryp) { InitializeComponent(); Tryp = tryp; UpdateNumbers(); UpdateExpensesList(); }
protected Tryp CreateTryp(DateTime startDate, int dailyBudget, int weekEndExtra, string name) { var trypDb = new LittleDB(name); var tryp = new Tryp(trypDb); tryp.Initialize(startDate, dailyBudget, weekEndExtra); return tryp; }
protected void ShowTryp(Tryp tryp) { var trypFrom = new TrypForm(tryp); trypFrom.ShowDialog(); }