Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PhotoAndCommentPage"/> class.
 /// </summary>
 public PhotoAndCommentPage(FileInfoDeliveryModel fileInfo, ItemDeliveredModel cartonModel)
 {
     InitializeComponent();
     _itemModel = cartonModel;
     CallLabel(true, false);
     Appear         = true;
     BindingContext = new PhotoAndCommentViewModel(new PageService(), fileInfo, cartonModel, "delivery");
     if (!string.IsNullOrEmpty(_itemModel.comments_Delivery))
     {
         MyEditor.Text = _itemModel.comments_Delivery;
     }
     else
     {
         MyEditor.Text = "";
     }
     Appear = false;
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PhotoAndCommentPage"/> class.
 /// </summary>
 /// <param name="loading">The loading.</param>
 /// <param name="appear">if set to <c>true</c> [appear].</param>
 /// <param name="fileInfo">The file information.</param>
 public PhotoAndCommentPage(NewLoadingModel loading, bool appear, FileInfoModel fileInfo)
 {
     InitializeComponent();
     _loading  = loading;
     _fileInfo = fileInfo;
     CallLabel(appear, true);
     Appear         = appear;
     BindingContext = new PhotoAndCommentViewModel(new PageService(), _loading, _fileInfo, "loading");
     if (!string.IsNullOrEmpty(_loading.FileItemModel.Comments_loading))
     {
         MyEditor.Text = _loading.FileItemModel.Comments_loading;
     }
     else
     {
         MyEditor.Text = "";
     }
 }