Exemplo n.º 1
0
        //Called when we lose focus on text boxes
        private void TextBoxes_LostFocus(object sender, RoutedEventArgs e)
        {
            TextBoxHandler.LostFocus(sender, e);
            if (((TextBox)sender == CallerName) && !this.CallerName.Text.Equals(ETD.Properties.Resources.TextBox_CallerName))
            {
                intervention.setCallerName(this.CallerName.Text);
            }
            if (((TextBox)sender == Location) && !this.Location.Text.Equals(ETD.Properties.Resources.TextBox_Location))
            {
                intervention.setLocation(this.Location.Text);
            }
            if (((TextBox)sender == NatureOfCall) && !this.NatureOfCall.Text.Equals(ETD.Properties.Resources.TextBox_Nature))
            {
                intervention.setNatureOfCall(this.NatureOfCall.Text);
            }
            if (((TextBox)sender == Age) && !this.Age.Text.Equals(""))
            {
                intervention.setAge(this.Age.Text);
            }

            if (((TextBox)sender == OtherChiefComplaint) && !this.OtherChiefComplaint.Text.Equals(""))
            {
                intervention.setOtherChiefComplaint(OtherChiefComplaint.Text);
            }
            if (((TextBox)sender == Callhh) || ((TextBox)sender == Callmm))
            {
                int      hh         = int.Parse(Callhh.Text);
                int      mm         = int.Parse(Callmm.Text);
                DateTime timeOfCall = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, hh, mm, 0);
                intervention.setTimeOfCall(timeOfCall);
            }
        }
Exemplo n.º 2
0
        //Called when the textboxes lose focus
        private void TextBoxes_LostFocus(object sender, RoutedEventArgs e)
        {
            TextBoxHandler.LostFocus(sender, e);

            //If the textbox is for the a request field, update the request
            if ((TextBox)sender == requestTextBox)
            {
                UpdateRequest();
            }
        }
Exemplo n.º 3
0
        //Called when the textboxes lose focus
        private void TextBoxes_LostFocus(object sender, RoutedEventArgs e)
        {
            TextBoxHandler.LostFocus(sender, e);

            //If the textbox is for the resource name, update the resource
            if ((TextBox)sender == resourceNameTextBox)
            {
                UpdateResource();
            }
        }
 //Called When we lost focus on text boxes
 private void TextBoxes_LostFocus(object sender, RoutedEventArgs e)
 {
     try
     {
         DateTime concTime = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, Convert.ToInt32(Endhh.Text), Convert.ToInt32(Endmm.Text), 0);
         intervention.setConclusionTime(concTime);
     }
     catch { }
     intervention.setConclusionAdditionalInfo(AdditionalInformation.Text);
     intervention.setAmbulanceCompany(AmbulanceCompany.Text);
     intervention.setAmbulanceVehicle(AmbulanceVehicle.Text);
     intervention.setFirstResponderCompany(FirstResponderCompany.Text);
     intervention.setFirstResponderVehicle(FirstResponderVehicle.Text);
     intervention.setMeetingPoint(MeetingPoint.Text);
     TextBoxHandler.LostFocus(sender, e);
 }
 //Called on text box lost focus
 private void TextBoxes_LostFocus(object sender, RoutedEventArgs e)
 {
     TextBoxHandler.LostFocus(sender, e);
 }
Exemplo n.º 6
0
 //Called when the textboxes lose focus
 private void AdditionalTextInputTextBoxOnLostFocus(object sender, RoutedEventArgs e)
 {
     TextBoxHandler.LostFocus(sender, e);
 }