private void lblSystems_MouseDown(object sender, MouseButtonEventArgs e) { if (clientSelected) { setSelectedToNone(); lblSystems.Background = selectedBrush; ClientFragmentHolder.Children.RemoveAt(0); systemsWindow = new Systems(currentClientGuid); systemsWindow.DetachContent(); ClientFragmentHolder.Children.Add(systemsWindow.SystemsFragment); } else { ErrorHandler.ErrorHandle error = ErrorHandler.ErrorHandle.getInstance(); error.handle(new CustomExceptionForUI("Please select a Client first."), false, true); //EventBus.EventBus.Instance.PostEvent(new CustomEvent("Notify","Please select a client first",CustomEvent.EventType.warning)); // postEvent here // Show error message. A android style popup } }