Exemplo n.º 1
0
        private void Btn_A5_Click(object sender, RoutedEventArgs e)
        {
            MaterialConstructionPicker materialConstructionPicker = new MaterialConstructionPicker(txt_A5_Setting.Text, Utils.ConvertMeToDouble(txt_A5.Text));

            materialConstructionPicker.ShowDialog();
            if (materialConstructionPicker.isAccepted == true)
            {
                //selectedMaterial.Category = materialTransportPicker.selectedBaseMaterial.Category;
                selectedMaterial.ECI_A5 = materialConstructionPicker.Value;
                selectedMaterial.SetProperty("ECI_A5_Settings", materialConstructionPicker.Settings);
            }
            UpdateMaterialSettings();
        }
        private void Btn_A5_Click(object sender, RoutedEventArgs e)
        {
            MaterialConstructionPicker materialConstructionPicker = new MaterialConstructionPicker(selectedMaterial.materialA5Properties);

            materialConstructionPicker.ShowDialog();
            if (materialConstructionPicker.isAccepted == true)
            {
                chx_A5_Manual.IsChecked          = false;
                selectedMaterial.ECI_A5_Override = false;

                selectedMaterial.materialA5Properties = materialConstructionPicker.materialA5Properties;
                selectedMaterial.ECI_A5 = selectedMaterial.materialA5Properties.value;
            }
            UpdateMaterialSettings();
        }