public static void Show(string title, string message) { Application.Current.Dispatcher.Invoke(delegate { EventBusManager.Send <MessageBoxView, MessageBoxMessage>(new MessageBoxMessage(title, message), 10, true); }); }
public static void ShowAsk(string title, string message, Action <bool> safeData) { bool result = false; Application.Current.Dispatcher.Invoke(delegate { EventBusManager.Send <MessageBoxView, AskBoxMessage>(new AskBoxMessage(title, message, safeData), 10, true); }); }
private void Window_Loaded(object sender, RoutedEventArgs e) { // Start the main view EventBusManager.OpenView <MainView>(0); EventBusManager.Send <MainView, BaseMessage>(new BaseMessage(BaseMessageOptions.LoadActualData), 0); }