Esempio n. 1
0
 public void AddChattingItem(Models.ChattingItems x)
 {
     this.allItems.Add(x);
     using (var conn = ChattingInfoDatabase.GetDbConnection()) {
         var Database = conn.Table <Models.ChattingItems>();
         conn.Insert(x);
     }
     NotifyPropertyChanged();
 }
Esempio n. 2
0
 public void AddChattingItem(int sender, string message, string nickPath)
 {
     Models.ChattingItems theNew = new Models.ChattingItems()
     {
         Sender    = sender, Msg = message,
         NickPath  = nickPath,
         NickImage = new Windows.UI.Xaml.Media.Imaging.BitmapImage(new Uri(nickPath))
     };
     this.allItems.Add(theNew);
     using (var conn = ChattingInfoDatabase.GetDbConnection()) {
         var Database = conn.Table <Models.ChattingItems>();
         conn.Insert(theNew);
     }
     NotifyPropertyChanged();
 }