protected void ButtonUpdate(object sender, EventArgs a) { try { textbuffer1.Text = bank.View(); } catch (Exception e) { Console.WriteLine(e); } }
public View(Bank <Account> _bank) { bank = _bank; Gtk.Application.Init(); Builder Gui = new Builder(); try { Gui.AddFromFile( "/home/danila/Documents/VisualCode/cSharp/BankApplication/BankApplication/GUI/View.glade"); Gui.Autoconnect(this); textbuffer1.Text = bank.View(); Dialog1.Visible = true; } catch (Exception e) { Console.WriteLine(e); } }