コード例 #1
0
        /// <summary>
        /// Initializes a new instance of the MainViewModel class.
        /// </summary>
        public MainViewModel()
        {
            CommandsFactory.CreateCommandsFile(@"commands.json");

            CommandGroups = new List <ConfigurationGroup>
            {
                new ConfigurationGroup
                {
                    DisplayName = "Basic Config",
                    CommandKeys = new List <string>
                    {
                        "ChangeHostname",
                        "ChangeInterface"
                    }
                },
                new ConfigurationGroup
                {
                    DisplayName = "EIGRP"
                },
            };

            // Load in XAML
        }