Esempio n. 1
0
        public StationInformation(object viewObject)
        {
            _StationInformation = (Models.StationInformationModel)viewObject;
            this.BindingContext = _StationInformation;
            InitializeComponent();

            _attachementView = new AttachmentView();
            //stkAttachment.Children.Add(_attachementView);
        }
Esempio n. 2
0
        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");
        }