Exemple #1
0
        protected void executeShowIidkMessageViewCommand(object obj)
        {
            IidkMessageView iidkMessageView = new IidkMessageView();

            iidkMessageView.ViewModel             = new IidkMessageViewModel(iidkMessageView, currentMessage.Value);
            iidkMessageView.Owner                 = this.view;
            iidkMessageView.WindowStartupLocation = WindowStartupLocation.CenterOwner;
            iidkMessageView.ShowInTaskbar         = false;
            iidkMessageView.Show();
        }
Exemple #2
0
 public IidkMessageViewModel(IidkMessageView view, string msgString)
     : base()
 {
     this.view  = view;
     this.title = "IIDK сообщение";
     //this.messages = new ConcurrentQueue<Message>();
     this.msg             = new Msg(msgString);
     this.paramsDataTable = new DataTable();
     iidkMsgParamsToDataTable(this.paramsDataTable, msg);
     raiseOnPropertyChanged();
 }
Exemple #3
0
        private void executeNewMessageCommand(object obj)
        {
            string msgString = Clipboard.GetText();

            if (msgString == null)
            {
                IntellectOPK.MessageService.Message.ShowError("Нет данных в буфере обмена", "Ошибка", this.view);
            }
            else
            {
                //IntellectOPK.MessageService.Message.ShowMessage(msgString, "Данные буфера обмена", this.view);
                IidkMessageView iidkMessageView = new IidkMessageView();
                iidkMessageView.ViewModel             = new IidkMessageViewModel(iidkMessageView, msgString);
                iidkMessageView.Owner                 = this.view;
                iidkMessageView.WindowStartupLocation = WindowStartupLocation.CenterOwner;
                iidkMessageView.ShowInTaskbar         = false;
                iidkMessageView.Show();
            }
            //Message.ShowError(e.Message, e.GetType().ToString(), this.view);
            //Message.ShowExclamation("Предупреждаю", "Внимание", this.view);
            //Message.ShowMessage("Файл успешно сохранен", "Информация", this.view);
        }