예제 #1
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     // TextBoxer.Text
     if (TupleDataClass.OMightyDict.TryGetValue(TupleDataClass.CurrentlySelected.ID, out var x))
     {
         x.Add(new ThreadItemViewModel
         {
             SendersName        = "ME",
             TwoLetters         = "ME",
             ProfilePicColorRGB = "green",
             Message            = TextBoxer.Text,
             SentByMe           = true
         });
         TupleDataClass.OMightyDict[TupleDataClass.CurrentlySelected.ID] = x;
     }
     else
     {
         MessageBox.Show("Oh no");
     }
     TupleDataClass.Refresher();
 }
예제 #2
0
 public void OpenMessage()
 {
     TupleDataClass.CurrentlySelectedChanger(this);
     TupleDataClass.Refresher();
 }