Inheritance: INotifyPropertyChanged
Exemplo n.º 1
0
        public void NewLine()
        {
            var metadata = new UIMetadata("", " ", false);

            metadata.NameChanged += MetadataOnNameChanged;
            AugmentedCollection.Add(metadata);
        }
Exemplo n.º 2
0
 public void Remove(UIMetadata metadata)
 {
     if (AugmentedCollection.Contains(metadata))
     {
         metadata.NameChanged -= MetadataOnNameChanged;
         AugmentedCollection.Remove(metadata);
     }
 }
 public void Remove(UIMetadata metadata)
 {
     if (AugmentedCollection.Contains(metadata))
     {
         metadata.NameChanged -= MetadataOnNameChanged;
         AugmentedCollection.Remove(metadata);
     }
 }
Exemplo n.º 4
0
 private void DeleteMetadata(UIMetadata metadata)
 {
     if (NodeContext != null)
     {
         NodeContext.Updates.Add(new UpdateMetadataDetail
         {
             Type   = UpdateMetadataType.Delete,
             NewKey = metadata.Name,
         });
         _source.Remove(metadata);
         NodeMetadataDataGrid.ItemsSource = null;
         NodeMetadataDataGrid.ItemsSource = _source;
         UpdateLayout();
     }
 }
Exemplo n.º 5
0
        private void InitialiseAugementedCollection(Dictionary <string, string> uiMetadata)
        {
            foreach (var keyPair in uiMetadata)
            {
#if DEBUG
                var metadata = new UIMetadata(keyPair.Key, keyPair.Value);
                metadata.NameChanged += MetadataOnNameChanged;
                AugmentedCollection.Add(metadata);
#else
                if (keyPair.Key != "Name" && keyPair.Key != "Description.Content" && keyPair.Key != "Description.Type" &&
                    keyPair.Key != "Description.Url" && keyPair.Key != "Description.Width" && keyPair.Key != "Description.Height" && keyPair.Key != "SpokenBy")
                {
                    var metadata = new UIMetadata(keyPair.Key, keyPair.Value);
                    metadata.NameChanged += MetadataOnNameChanged;
                    AugmentedCollection.Add(metadata);
                }
#endif
            }
            NewLine();
        }
        private void InitialiseAugementedCollection(Dictionary<string, string> uiMetadata)
        {
            foreach (var keyPair in uiMetadata)
            {
#if DEBUG
                var metadata = new UIMetadata(keyPair.Key, keyPair.Value);
                metadata.NameChanged += MetadataOnNameChanged;
                AugmentedCollection.Add(metadata);
#else
                if (keyPair.Key != "Name" && keyPair.Key != "Description.Content" && keyPair.Key != "Description.Type"
                     && keyPair.Key != "Description.Url" && keyPair.Key != "Description.Width" && keyPair.Key != "Description.Height"  && keyPair.Key != "SpokenBy")
                {
                    var metadata = new UIMetadata(keyPair.Key, keyPair.Value);
                    metadata.NameChanged += MetadataOnNameChanged;
                    AugmentedCollection.Add(metadata);
                }
#endif

            }
            NewLine();
        }
Exemplo n.º 7
0
 private void DeleteMetadata(UIMetadata metadata)
 {
     if (NodeContext != null)
     {
         NodeContext.Updates.Add(new UpdateMetadataDetail
         {
             Type = UpdateMetadataType.Delete,
             NewKey = metadata.Name,
         });
         _source.Remove(metadata);
         NodeMetadataDataGrid.ItemsSource = null;
         NodeMetadataDataGrid.ItemsSource = _source;
         UpdateLayout();
     }
 }
 public void NewLine()
 {
     var metadata = new UIMetadata("", " ", false);
     metadata.NameChanged += MetadataOnNameChanged;
     AugmentedCollection.Add(metadata);
 }