public StationInformation(object viewObject) { _StationInformation = (Models.StationInformationModel)viewObject; this.BindingContext = _StationInformation; InitializeComponent(); _attachementView = new AttachmentView(); //stkAttachment.Children.Add(_attachementView); }
private void savedrafts_btn_Clicked(object sender, EventArgs e) { _StationInformation.ReportType = "Station Information" + _StationInformation.Id.ToString(); _StationInformation.DateOfEvent = DateTime.Now; _StationInformation.Created = DateTime.Now; _StationInformation.Attachments = _attachementView.GetAttachmentInfoAsString(); _StationInformation = App.DAUtil.SaveOrUpdate(_StationInformation); DependencyService.Get <IMessage>().ShortAlert("Item drafted"); }