private void Button_Click(object sender, RoutedEventArgs e) { string make = txbMake.Text; string model = txbModel.Text; string color = txbColor.Text; double price = Convert.ToDouble(txbPrice.Text); ListHolder.GetInstance().AddVroom(new Vroom(make, model, price, color, 0)); }
private void btnRemove_Click(object sender, RoutedEventArgs e) { ListHolder.GetInstance().Vrooms.Remove((Vroom)lsbVrooms.SelectedItem); }
public MainWindow() { InitializeComponent(); lsbVrooms.ItemsSource = ListHolder.GetInstance().Vrooms; btnRemove.IsEnabled = false; }
public ReportWindow() { InitializeComponent(); rtbReport.AppendText(ListHolder.GetInstance().Report()); }