Exemple #1
0
        private void AddNewCommand_Click(object sender, RoutedEventArgs e)
        {
            var ncti = new NetworkCommandTreeItemModel()
            {
                CommandName = "New Command", NetworkCommand = new NetworkCommand()
                {
                    Name = "New Command", Code = 0, Description = "Update Command Description", Namespace = "Agent"
                }
            };

            ncti.NetworkCommand.ClassProperties = new ObservableCollection <ClassProperty>();
            ncti.NetworkCommand.EnumerationList = new ObservableCollection <EnumerationDefinition>();
            CommandVM.NetworkCommands.Add(ncti);
            CommandVM.SelectedCommand = ncti.NetworkCommand;
        }
Exemple #2
0
 private void AddNewCommand_Click(object sender, RoutedEventArgs e)
 {
     var ncti = new NetworkCommandTreeItemModel() { CommandName = "New Command", NetworkCommand = new NetworkCommand() { Name = "New Command", Code = 0, Description = "Update Command Description", Namespace = "Agent" } };
     ncti.NetworkCommand.ClassProperties = new ObservableCollection<ClassProperty>();
     ncti.NetworkCommand.EnumerationList = new ObservableCollection<EnumerationDefinition>();
     CommandVM.NetworkCommands.Add(ncti);
     CommandVM.SelectedCommand = ncti.NetworkCommand;
 }