Exemplo n.º 1
0
        void _sys_WarningOccured(object sender, WarningArgs e)
        {
            Dispatcher.BeginInvoke(DispatcherPriority.Normal, new Action(() => {

            if( e.Type == WarningType.ConnectonFailed ) {

              DisableListView("Connection Failed: " + e.Message);

            } else MessageDialog.Show(MessageType.Warn, e.Message, e.Content);

              }));
        }
Exemplo n.º 2
0
 protected void OnWarning(WarningArgs arg)
 {
     if( WarningOccured != null )
     WarningOccured(this, arg);
 }
Exemplo n.º 3
0
 void System_WarningOccured(object sender, WarningArgs e)
 {
     OnWarning(e);
 }
        void _sys_WarningOccured(object sender, WarningArgs e)
        {
            Dispatcher.BeginInvoke(DispatcherPriority.Normal, new Action(() => {

            MessageDialog.Show(MessageType.Warn, e.Message, e.Content);

              }));
        }