示例#1
0
文件: FormMain.cs 项目: Woprok/grcis
        public FormMain()
        {
            InitializeComponent();

            titlePrefix = Text += " (" + rev + ")";
            setWindowTitleSuffix(" Zoom: 100%");

            // Default PaZ button = Right.
            panAndZoom = new PanAndZoomSupport(pictureBoxMain, Resources.InitialImage, setWindowTitleSuffix)
            {
                Button = MouseButtons.Right
            };
            panAndZoom.UpdateZoomToMiddle();

            // Modules registry => combo-box.
            foreach (string key in ModuleRegistry.RegisteredModuleNames())
            {
                comboBoxModule.Items.Add(key);
            }
            comboBoxModule.SelectedIndex = 0;
        }