Exemplo n.º 1
0
 public MainWindow(string userName)
 {
     InitializeComponent();
     Messages = new ObservableCollection<string>();
     MessagesBox.ItemsSource = Messages;
     this.user = new User() { Username = userName };
     this.dManager = new DataManager(this.user);
     UserNameLabel.Text = userName;
     this.lpoginTime = DateTime.Now;
     UpdateMessages();
 }
Exemplo n.º 2
0
 public DataManager(User user)
 {
     this.user = user;
 }