CSPspEmu.Gui.Winforms.FunctionViewerForm.FunctionViewerForm_Load C# (CSharp) Метод

FunctionViewerForm_Load() приватный Метод

private FunctionViewerForm_Load ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Результат void
        private void FunctionViewerForm_Load(object sender, EventArgs e)
        {
            PcListBox.SuspendLayout();
            foreach (var PC in CpuProcessor.MethodCache.PCs.OrderBy(Item => Item))
            {
                var Entry = CpuProcessor.MethodCache.GetForPC(PC);
                if (Entry.AstTree != null)
                {
                    PcListBox.Items.Add(new PCItem()
                    {
                        MethodCache = CpuProcessor.MethodCache,
                        Entry = Entry,
                        PC = PC,
                    });
                }
            }
            LanguageComboBox.SelectedIndex = 0;
            if (PcListBox.Items.Count > 0)
            {
                PcListBox.SelectedIndex = 0;
            }
            PcListBox.ResumeLayout();
        }