Beispiel #1
0
        static frmSpectra()
        {
            // Load up category info, attempt to find icons registered with the operating system.
            var mainIcon = IconUtils.LoadIconFromAssembly(typeof(frmSpectra), "Icons.Spectra.ico", 16, 16);

            MainCategory      = new CategoryInfo("Files", mainIcon);
            XCaliburCategory  = CategoryForType("XCalibur", IconUtils.GetIconForFileType("raw", IconSize.Small, false, false, false));
            AgilentCategory   = CategoryForType("Agilent", IconUtils.GetIconForFileType("wiff", IconSize.Small, false, false, false));
            MicromassCategory = CategoryForType("Micromass",
                                                IconUtils.AttemptIconForFile(new String[] { @"C:\MassLynx\mlynx.exe",
                                                                                            @"C:\MassLynx\mlynx3.exe",
                                                                                            @"C:\MassLynx\mlynx4.exe",
                                                                                            @"C:\MassLynx\mlynx5.exe",
                                                                                            @"C:\Program Files\MassLynx\mlynx.exe",
                                                                                            @"C:\Program Files\MassLynx\mlynx3.exe",
                                                                                            @"C:\Program Files\MassLynx\mlynx4.exe",
                                                                                            @"C:\Program Files\MassLynx\mlynx5.exe" },
                                                                             IconSize.Small, false, false, false));
            // Who knows what's associated with .s files
            SFileCategory  = CategoryForType("S-File", IconUtils.LoadIconFromAssembly(typeof(frmSpectra), "Icons.SFile.ico", 16, 16));
            BrukerCategory = CategoryForType("Bruker", IconUtils.GetIconForFileType("ser", IconSize.Small, false, false, false));
        }