Exemple #1
0
 public Dialogs(TelegramSession session, BinaryReader reader)
 {
     this.session = session;
     Read(reader);
     session.Updates.NewMessageEvent += delegate(Message message) {
         Deployment.Current.Dispatcher.BeginInvoke(() => model.ProcessNewMessage(message));
     };
 }
Exemple #2
0
 public Dialogs(TelegramSession session)
 {
     this.session = session;
     model        = new DialogListModel(session);
     session.Updates.NewMessageEvent += delegate(Message message) {
         Deployment.Current.Dispatcher.BeginInvoke(() => model.ProcessNewMessage(message));
     };
 }