private void Init() { Logger.SetLogger(new LibLogger()); #if MONO_GTK for (int i = (int)PROGRAM.NONE + 1; i < (int)PROGRAM.COUNT; ++i) { var codeControl = new CodeControl(); codeControl.SetProgram(((PROGRAM)i)); CodeBox.Add(codeControl); } #else CodeFoldPanel.AutoSize = true; for (int i = (int)PROGRAM.NONE + 1; i < (int)PROGRAM.COUNT; ++i) { var codeControl = new CodeControl(); codeControl.Dock = DockStyle.Bottom; CodeFoldPanel.Controls.Add(codeControl); controls[(PROGRAM)i] = codeControl; } #endif }