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(); }
public void OpenMessage() { TupleDataClass.CurrentlySelectedChanger(this); TupleDataClass.Refresher(); }