private void ShowFriendsFailed() { GalaSoft.MvvmLight.Threading.DispatcherHelper.UIDispatcher.BeginInvoke(() => { YesNoDialog frindsInfoFailed = new YesNoDialog(); frindsInfoFailed.Title = "Error"; frindsInfoFailed.Message = Words.FriendsFailedDescription; frindsInfoFailed.Yes = "Try Again"; frindsInfoFailed.No = "Cancel"; frindsInfoFailed.Closed += new EventHandler(frindsInfoFailed_Closed); frindsInfoFailed.Show(); }); }
private void ShowFlocksReady() { GalaSoft.MvvmLight.Threading.DispatcherHelper.UIDispatcher.BeginInvoke(() => { YesNoDialog flockLayout = new YesNoDialog(); flockLayout.Title = "Flocks Ready"; flockLayout.Message = "Your flocks are ready! Do you want to switch to Flock Layout now?"; flockLayout.Yes = "Yes"; flockLayout.No = "No"; flockLayout.Closed += new EventHandler(flockLayout_Closed); flockLayout.Show(); }); }