示例#1
0
        private void YesBtnClick(IUICommand command)
        {
            Code c = new Code();
            c.CPRStartTime = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, int.Parse(txtHour.Text), int.Parse(txtMinute.Text), 0);

            this.Frame.Navigate(typeof(HomePage), c);
        }
示例#2
0
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            if (e != null && e.Parameter != null)
            {
                CurrentCode = e.Parameter as Code;
                if (CurrentCode != null)
                {
                    Report = new XmlDocument();
                    CodeElement = Report.CreateElement("Code");
                    CodeElement.SetAttribute("CPRStartTime", CurrentCode.CPRStartTime.ToString());
                    CodeElement.SetAttribute("CPREndTime", CurrentCode.CPREndTime.ToString());
                    DefibElement = Report.CreateElement("Defibrillation");
                    PatientInfoElement = Report.CreateElement("PatientInformation");
                    CodeElement.AppendChild(DefibElement);
                    CodeElement.AppendChild(PatientInfoElement);
                    Report.AppendChild(CodeElement);
                }
            }

            if (CurrentDefibrillation == null)
            {
                CurrentDefibrillation = new Defibrillation();
            }
            if (CurrentPatientInfo == null)
            {
                CurrentPatientInfo = new PatientInformation();
            }
            base.OnNavigatedTo(e);
        }