예제 #1
0
        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));
        }
예제 #2
0
 private void btnRemove_Click(object sender, RoutedEventArgs e)
 {
     ListHolder.GetInstance().Vrooms.Remove((Vroom)lsbVrooms.SelectedItem);
 }
예제 #3
0
 public MainWindow()
 {
     InitializeComponent();
     lsbVrooms.ItemsSource = ListHolder.GetInstance().Vrooms;
     btnRemove.IsEnabled   = false;
 }
예제 #4
0
 public ReportWindow()
 {
     InitializeComponent();
     rtbReport.AppendText(ListHolder.GetInstance().Report());
 }