Exemplo n.º 1
0
 //Clear All items, comboboxes, checkboxes etc...
 private void ClearListButton_Click(object sender, RoutedEventArgs e)
 {
     rtb.Document.Blocks.Clear();
     CarPrice.Clear();
     InsurancePrice.Clear();
     Brand.Clear();
     Type.Clear();
     SenderName.SelectedIndex          = 0;
     AssistanceType.SelectedIndex      = 0;
     AdreserType.SelectedIndex         = 0;
     GlassPrice.SelectedIndex          = 0;
     NnwPrice.SelectedIndex            = 0;
     ValType.SelectedIndex             = 0;
     AcDisc.SelectedIndex              = 0;
     OwnCont.SelectedIndex             = 0;
     GrNet.SelectedIndex               = 0;
     OcComboBox.SelectedIndex          = 0;
     ConstInsuranceValue.SelectedIndex = 0;
     OcCheckBox.IsChecked              = false;
     AcCheckBox.IsChecked              = false;
     NnwCheckBox.IsChecked             = false;
     GlassCheckBox.IsChecked           = false;
     AssCheckBox.IsChecked             = false;
     AtHomeLimit.IsChecked             = false;
     KmLimit.IsChecked     = false;
     BorderRange.IsChecked = false;
     InsuranceCompany      = "";
     Recpient                = "";
     CarBrand                = "";
     CarType                 = "";
     DiscountOC              = "";
     CarPriceAC              = "";
     GrossNetAC              = "";
     OwnContributionAC       = "";
     DiscountAC              = "";
     ValuationTypeAC         = "";
     NnwTypes                = "";
     AssistanceRange         = "";
     CarGlass                = "";
     InsurancePriceEnd       = "";
     Sender                  = "";
     AssistanceTypeCompany   = "";
     InsuranceChange         = "";
     FirstPartOfMail         = "";
     SecondPartOfMail        = "";
     ThirdPartOfMail         = "";
     FourthPartOfMail        = "";
     FourthAndHalfPartOFMail = "";
     FifthPartOfMail         = "";
     SixthPartOfMail         = "";
     SeventhPartOfMail       = "";
     EightPartOfMail         = "";
     AtHomeLimitation        = "";
     KmLimitation            = "";
     BorderRangePl           = "";
     id = 0;
 }