public MainWindow() { InitializeComponent(); //timer tempo = new Thread(Timer); tempo.Start(); movimenti = gestione.leggi(); }
public Visualizza(Movimenti a, string b) { InitializeComponent(); movimenti = a; if (b == "Categorie") { a.sortCategoria(); } else { a.sortData(); } grid.IsReadOnly = true; grid.ItemsSource = a.getLista(); }
private void aggiornaSchermata() { if (!CheckAccess()) { Dispatcher.Invoke(() => { aggiornaSchermata(); }); } else { data.Content = DateTime.Now.ToString("dddd, dd MMMM yyyy"); movimenti = gestione.leggi(); movimenti.calcolca(); Piu.Content = "+" + movimenti.positivo; Meno.Content = "-" + movimenti.negativo; saldo.Text = movimenti.saldo.ToString(); } }
public AggiungiMovimento(string a, Gestione b, Movimenti c) { InitializeComponent(); gestione = b; if (a == "aggiungi") { segno.Content = "+"; } else { segno.Content = "-"; } Thread tempo = new Thread(Timer); tempo.Start(); movimenti = c; }