private void VIEW_MODEL_OnError(ChatMasterControlContext sender, UWPX_UI_Context.Classes.Events.OnErrorEventArgs args) { InfoDialog dialog = new InfoDialog(args.TITLE, args.MESSAGE) { Foreground = new SolidColorBrush(Colors.Red) }; }
//--------------------------------------------------------Constructor:----------------------------------------------------------------\\ #region --Constructors-- public ChatMasterControl() { this.InitializeComponent(); this.VIEW_MODEL = new ChatMasterControlContext(Resources); this.VIEW_MODEL.OnError += VIEW_MODEL_OnError; }