示例#1
0
        public TrackingDetail(Models.stt resultData)
        {
            InitializeComponent();
            var vm = new TrackingDetailViewModel(resultData, Navigation);

            vm.OnClose    += Vm_OnClose;
            BindingContext = vm;
        }
示例#2
0
 public TrackingDetailViewModel(Models.stt resultData, INavigation navigation)
 {
     Model = resultData;
     if (Model.Status == null)
     {
         Model.Status = new status();
     }
     Navigation  = navigation;
     SignCommand = new Command(SignAction);
     SaveCommand = new Command(SaveAction);
     if (resultData.Status != null && resultData.Status.Sign != null)
     {
         Stream sign = new MemoryStream(resultData.Status.Sign);
         Sign = ImageSource.FromStream(() => { return(sign); });
     }
 }