示例#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();
 }
示例#2
0
 public DataManager(User user)
 {
     this.user = user;
 }