Beispiel #1
0
        private void PrepareForSharing(string message)
        {
            ShareInternalContentDataProvider contentDataProvider = new ShareInternalContentDataProvider();

            contentDataProvider.Message = message;
            contentDataProvider.StoreDataToRepository();
            ShareContentDataProviderManager.StoreDataProvider((IShareContentDataProvider)contentDataProvider);
        }
Beispiel #2
0
        private void buttonSend_Click(object sender, EventArgs eventArgs)
        {
            ShareInternalContentDataProvider contentDataProvider = new ShareInternalContentDataProvider();

            contentDataProvider.Message  = this._sharePostUC.Text;
            contentDataProvider.WallPost = this.PostCommentsVM.WallPost;
            contentDataProvider.StoreDataToRepository();
            ShareContentDataProviderManager.StoreDataProvider((IShareContentDataProvider)contentDataProvider);
            this._dc.Hide();
            Navigator.Current.NavigateToPickConversation();
        }
        private void ButtonSend_Click(object sender, EventArgs eventArgs)
        {
            if (this.PhotoVM.Photo == null)
            {
                return;
            }
            this._ds.Hide();
            ShareInternalContentDataProvider contentDataProvider = new ShareInternalContentDataProvider();

            contentDataProvider.Message = this._sharePostUC.Text;
            contentDataProvider.Photo   = this.PhotoVM.Photo;
            contentDataProvider.StoreDataToRepository();
            ShareContentDataProviderManager.StoreDataProvider((IShareContentDataProvider)contentDataProvider);
            Navigator.Current.NavigateToPickConversation();
        }
        private void ButtonSend_Click(object sender, EventArgs eventArgs)
        {
            PhotoViewModel currentPhotoVm1 = this.CurrentPhotoVM;

            if ((currentPhotoVm1 != null ? currentPhotoVm1.Photo : null) == null)
            {
                PhotoViewModel currentPhotoVm2 = this.CurrentPhotoVM;
                if ((currentPhotoVm2 != null ? currentPhotoVm2.Document : null) == null)
                {
                    return;
                }
            }
            this._ds.Hide();
            ShareInternalContentDataProvider contentDataProvider = new ShareInternalContentDataProvider();

            contentDataProvider.Message  = this._sharePostUC.Text;
            contentDataProvider.Photo    = this.CurrentPhotoVM.Document == null ? this.CurrentPhotoVM.Photo : null;
            contentDataProvider.Document = this.CurrentPhotoVM.Document;
            contentDataProvider.StoreDataToRepository();
            ShareContentDataProviderManager.StoreDataProvider((IShareContentDataProvider)contentDataProvider);
            Navigator.Current.NavigateToPickConversation();
        }