Exemplo n.º 1
0
        public DisplayMessage(string MessageType)
        {
            InitializeComponent();
            DisplayMessageViewModel Display = new DisplayMessageViewModel(MessageType);

            this.DataContext = Display;

            Messages = Display.Messages;
        }
Exemplo n.º 2
0
        public DisplayMessagePage(Message message)
        {
            InitializeComponent();
            BindingContext = new DisplayMessageViewModel(message);
            MessagingCenter.Subscribe <DisplayMessageViewModel, string>(
                this,
                MessengerConstants.NavSendMessagePage,
                async(sender, subject) => {
                if (Navigation.NavigationStack.Count == 0)
                {
                    return;
                }

                await Navigation.PushAsync(new SendMessageView(new UserId(message.From), subject));
            });
        }
Exemplo n.º 3
0
        /// <summary>
        /// Standard class constructor
        /// </summary>
        public BrowserViewModel()
        {
            DisplayMessage = new DisplayMessageViewModel();
            BookmarkFolder = new EditFolderBookmarks();
            InitializeSpecialFolders();

            _OpenInWindowsCommand = null;
            _CopyPathCommand      = null;

            _Root = new SortableObservableDictionaryCollection();

            InitialPath = string.Empty;

            _UpdateView          = true;
            _IsBrowseViewEnabled = true;

            _IsBrowsing           = true;
            _IsExternallyBrowsing = false;
        }
Exemplo n.º 4
0
        /// <summary>
        /// Standard class constructor
        /// </summary>
        protected BrowserViewModel()
        {
            DisplayMessage = new DisplayMessageViewModel();
            BookmarkFolder = new AddFolderBookmark();
            InitializeSpecialFolders();

            mOpenInWindowsCommand = null;
            mCopyPathCommand      = null;

            Folders = new ObservableSortedDictionary <string, IFolderViewModel>();

            mExpandProcessor = ProcessFactory.CreateProcessViewModel();
            mProcessor       = ProcessFactory.CreateProcessViewModel();

            InitialPath = string.Empty;

            _UpdateView          = true;
            _IsBrowseViewEnabled = true;
        }
Exemplo n.º 5
0
        public DisplayMessagePage(Message message)
        {
            InitializeComponent();
            BindingContext = new DisplayMessageViewModel(message);
            MessagingCenter.Subscribe <DisplayMessageViewModel, string>(
                this,
                MessengerConstants.NavSendMessagePage,
                async(sender, subject) =>
            {
                if (!App.IsPageValid(this))
                {
                    MessageCenterUnsubscribe();
                    return;
                }

                var inReplyTo = FormatInReplyTo(message);
                await Navigation.PushAsync(new SendMessageView(new UserId(message.From), subject, inReplyTo));
            });
        }
        public DisplayMessageView(Message message)
        {
            InitializeComponent();

            DataContext = new DisplayMessageViewModel(message);
        }