示例#1
0
 public static void Show(string title, string message)
 {
     Application.Current.Dispatcher.Invoke(delegate
     {
         EventBusManager.Send <MessageBoxView, MessageBoxMessage>(new MessageBoxMessage(title, message), 10, true);
     });
 }
示例#2
0
        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);
            });
        }
示例#3
0
 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);
 }