예제 #1
0
        public void ForwardMessage(TLMessageBase message)
        {
            if (message == null)
            {
                return;
            }

            DialogDetailsViewModel.ForwardMessagesCommon(new List <TLMessageBase> {
                message
            }, StateService, NavigationService);
        }
        public void Forward()
        {
            if (CurrentItem == null)
            {
                return;
            }

            DialogDetailsViewModel.ForwardMessagesCommon(new List <TLMessageBase> {
                CurrentItem
            }, StateService, IoC.Get <INavigationService>());
        }
예제 #3
0
        public void ForwardMessages()
        {
            if (Items == null)
            {
                return;
            }

            var messages = new List <TLMessageBase>();

            foreach (var item in Items.Where(x => x.IsSelected))
            {
                messages.Add(item);
            }

            if (messages.Count == 0)
            {
                return;
            }

            IsSelectionEnabled = false;

            DialogDetailsViewModel.ForwardMessagesCommon(messages, StateService, NavigationService);
        }