예제 #1
0
        private void btnAdd_Click(object sender, RoutedEventArgs e)
        {
            AddFeatureValueWindow window = new AddFeatureValueWindow(null);

            if (window.ShowDialog(Application.Current.MainWindow))
            {
                List.Add(window.Feature);
            }
        }
예제 #2
0
        private void EditSelectedItem()
        {
            FeatureValue feature = (lvMain.SelectedItem as FeatureValue);

            if (feature == null)
            {
                return;
            }

            AddFeatureValueWindow window = new AddFeatureValueWindow(feature);

            if (window.ShowDialog(Application.Current.MainWindow))
            {
                feature.Name             = window.Feature.Name;
                feature.ShortDescription = window.Feature.ShortDescription;
                feature.LongDescription  = window.Feature.LongDescription;
            }
        }