Ejemplo n.º 1
0
        public Store()
        {
            this.msgHandler = new MsgHandler();
            InitializeComponent();
            List <User>     items  = new List <User>();
            List <Software> items2 = new List <Software>();

            items.Add(new User()
            {
                Name = "John Doe", Age = 42, Mail = "*****@*****.**"
            });
            items.Add(new User()
            {
                Name = "Jane Doe", Age = 39, Mail = "*****@*****.**"
            });
            items.Add(new User()
            {
                Name = "Sammy Doe", Age = 7, Mail = "*****@*****.**"
            });
            items2.Add(new Software()
            {
                Name = "test", Price = 10, Sold = 2, Made_By = "Jtech"
            });
            lvUsers.ItemsSource = items2;
        }
Ejemplo n.º 2
0
 public MainWindow()
 {
     InitializeComponent();
     this.msgHandler = new MsgHandler();
 }
Ejemplo n.º 3
0
 public DatabaseHandler()
 {
     msgHandler = new MsgHandler();
 }