private void OnMessageReceived(string Title) { AnouncementTitle = Title; if (typeOfAnouncement == "GeneralAnouncement") { GeneralAnouncementDetail = new ObservableCollection <GetGeneralAnoucementDetailByTitle_Result>(ST.GetGeneralAnoucementDetailByTitle(AnouncementTitle)); IsGeneralAnouncementDetailOpen = true; IsDisciplineAnouncementDetailOpen = false; } else if (typeOfAnouncement == "DisciplineAnouncement") { DisciplineAnouncementDetail = new ObservableCollection <GetDisciplineAnoucementDetailByTitle_Result>(ST.GetDisciplineAnoucementDetailByTitle(AnouncementTitle)); IsDisciplineAnouncementDetailOpen = true; IsGeneralAnouncementDetailOpen = false; } }