コード例 #1
0
        private void btnCreateValue(object sender, RoutedEventArgs e)
        {
            string content = (sender as Button).Tag.ToString();
            var    dialog  = new CreateValue();

            if (dialog.ShowDialog() == true)
            {
                if (!string.IsNullOrWhiteSpace(dialog.ResponseText))
                {
                    Property prop = PropRep.GetByName(content);
                    DataFac.AddValueToProp(dialog.ResponseText, prop._id);
                    KeepSelectedValues();
                }
                else
                {
                    MessageBox.Show("Du mangler at udfylde feltet");
                }
            }
        }