private void btn_EditDescription_Click(object sender, RoutedEventArgs e)
        {
            DescriptionEditor editor = new DescriptionEditor(txt_Description.Text);

            editor.ShowDialog();
            if (editor.isAccepted == true)
            {
                txt_Description.Text = editor.description;
            }
        }
Ejemplo n.º 2
0
        private void btn_EditDescription_Click(object sender, RoutedEventArgs e)
        {
            DescriptionEditor editor = new DescriptionEditor(txt_Description.Text);

            editor.ShowDialog();
            if (editor.isAccepted == true)
            {
                if (selectedMaterial != null)
                {
                    selectedMaterial.Description = editor.description;
                    UpdateMaterialSettings();
                }
            }
        }