public CommandCodes()

in TpmRcDecoder/TpmRcDecoder.Universal/CommandCodes.xaml.cs [3184:3211]


        public CommandCodes()
        {
            this.InitializeComponent();
            this.m_NavigationHelper = new NavigationHelper(this);
            this.m_NavigationHelper.LoadState += LoadState;
            this.m_NavigationHelper.SaveState += SaveState;

            Array.Sort(m_TPM12Commands, new CommandDescriptionComparer());
            Array.Sort(m_TPM20Commands, new CommandDescriptionComparer());

            ListOfCommands.SelectionChanged -= ListOfCommands_SelectionChanged;
            ListOfCommands.Items.Clear();
            // TPM 1.2
            foreach (TPMCommandDescription descr in m_TPM12Commands)
            {
                ListOfCommands.Items.Add(descr.Name);
            }
            // TPM 2.0
            foreach (TPMCommandDescription descr in m_TPM20Commands)
            {
                ListOfCommands.Items.Add(descr.Name);
            }
            ListOfCommands.SelectionChanged += ListOfCommands_SelectionChanged;

            CommandCode.Text = "";
            Description.Text = m_DefaultDescription;

        }