Ejemplo n.º 1
0
        private void buttonCategories_Click(object sender, EventArgs e)
        {
            MultiSelectionDialog msd = new MultiSelectionDialog();

            msd.Text     = "Select Categories";
            msd.Selected = textBoxCategories.Text;
            msd.Preset   = "applications;emulators;games;settings";
            msd.SelectDefaultInPresetList("games");
            if (msd.ShowDialog() == DialogResult.OK)
            {
                textBoxCategories.Text = msd.Selected;
            }
        }
Ejemplo n.º 2
0
        private void buttonMimeTypes_Click(object sender, EventArgs e)
        {
            MultiSelectionDialog msd = new MultiSelectionDialog();

            msd.Text     = "Select Mime Types";
            msd.Selected = textBoxMimeTypes.Text;
            msd.Preset   =
                "application/zip;" +
                "application/gzip;" +
                "application/x-compressed-tar;" +
                "application/x-dc-rom;" +
                "application/x-nintendo-ds-rom;" +
                "application/x-lynx-rom;" +
                "application/x-gameboy-rom;" +
                "application/x-gba-rom;" +
                "application/x-gbc-rom;" +
                "application/x-genesis-rom;" +
                "application/x-megadrive-rom;" +
                "application/x-msx-rom;" +
                "application/x-n64-rom;" +
                "application/x-nes-rom;" +
                "application/x-sms-rom;" +
                "application/x-snes-rom;" +
                "application/usp-zx-snapshot;" +
                "application/usp-zx-disk;" +
                "application/usp-zx-tape;" +
                "application/x-cue;" +
                "application/x-cd-image;" +
                "audio/x-matroska;" +
                "audio/webm;" +
                "audio/ogg;" +
                "audio/x-vorbis+ogg;" +
                "audio/x-flac+ogg;" +
                "audio/ac3;" +
                "audio/vnd.dts;" +
                "audio/prs.sid;" +
                "audio/x-adpcm;" +
                "audio/x-aiff;" +
                "audio/x-ape;" +
                "audio/x-it;" +
                "audio/flac;" +
                "audio/x-wavpack;" +
                "audio/midi;" +
                "audio/aac;" +
                "audio/mp4;" +
                "audio/x-mod;" +
                "audio/mp2;" +
                "audio/mp3;" +
                "audio/mpeg;" +
                "audio/m3u;" +
                "audio/x-ms-asx;" +
                "audio/wma;" +
                "audio/x-musepack;" +
                "audio/vnd.rn-realaudio;" +
                "audio/x-s3m;" +
                "audio/x-wav;" +
                "audio/x-xm;" +
                "video/x-flv;" +
                "video/x-matroska;" +
                "video/webm;" +
                "video/ogg;" +
                "video/mp4;" +
                "video/3gpp;" +
                "video/vnd.rn-realvideo;" +
                "video/mpeg;" +
                "video/quicktime;" +
                "video/x-ms-asf;" +
                "video/x-ms-wmv;" +
                "video/avi;" +
                "image/bmp;" +
                "image/gif;" +
                "image/jpeg;" +
                "image/jp2;" +
                "image/png;" +
                "image/rle;" +
                "image/svg+xml;" +
                "image/tiff;" +
                "image/x-pcx;" +
                "image/x-tga;";
            if (msd.ShowDialog() == DialogResult.OK)
            {
                textBoxMimeTypes.Text = msd.Selected;
            }
        }