Ejemplo n.º 1
0
        private void Btn_A4_Click(object sender, RoutedEventArgs e)
        {
            MaterialTransportPicker materialTransportPicker = new MaterialTransportPicker(txt_A4_Setting.Text, Utils.ConvertMeToDouble(txt_A4.Text), Utils.ConvertMeToDouble(txt_Density.Text));

            materialTransportPicker.ShowDialog();
            if (materialTransportPicker.isAccepted == true)
            {
                //selectedMaterial.Category = materialTransportPicker.selectedBaseMaterial.Category;
                selectedMaterial.ECI_A4 = materialTransportPicker.Value;
                selectedMaterial.SetProperty("ECI_A4_Settings", materialTransportPicker.Settings);
            }
            UpdateMaterialSettings();
        }
Ejemplo n.º 2
0
        private void btn_C2Pick_Click(object sender, RoutedEventArgs e)
        {
            MaterialTransportPicker transportSelector = new MaterialTransportPicker(eolProperties.c2Properties, carboMaterial);

            transportSelector.ShowDialog();

            if (transportSelector.isAccepted == true)
            {
                eolProperties.c2Properties = transportSelector.a4Properties;
                eolProperties.c2Value      = transportSelector.a4Properties.value;
            }

            Refresh();
        }
Ejemplo n.º 3
0
        private void Btn_A4_Click(object sender, RoutedEventArgs e)
        {
            MaterialTransportPicker materialTransportPicker = new MaterialTransportPicker(selectedMaterial.materiaA4Properties, selectedMaterial);

            materialTransportPicker.ShowDialog();
            if (materialTransportPicker.isAccepted == true)
            {
                chx_A4_Manual.IsChecked          = false;
                selectedMaterial.ECI_A4_Override = false;

                selectedMaterial.materiaA4Properties = materialTransportPicker.a4Properties;
                selectedMaterial.ECI_A4 = selectedMaterial.materiaA4Properties.value;

                //selectedMaterial.SetProperty("ECI_A4_Settings", materialTransportPicker.Settings);
            }
            UpdateMaterialSettings();
        }