Beispiel #1
0
        public static Bitmap getDllImage(string imageName, OEMType oemType)
        {
            Depot  depot = new Depot();
            Stream stream;

            switch (oemType)
            {
            case OEMType.HUION:
                stream = depot.loadHuionImage(imageName);
                break;

            case OEMType.GAOMON:
                stream = depot.loadGaomonImage(imageName);
                break;

            default:
                stream = depot.loadTalbetDriverImage(imageName);
                break;
            }

            Bitmap bitmap = new Bitmap(stream);

            stream.Close();
            stream.Dispose();
            return(bitmap);
        }
Beispiel #2
0
        public static Icon getDllIcon(string iconName, OEMType oemType)
        {
            Depot  depot = new Depot();
            Stream stream;

            switch (oemType)
            {
            case OEMType.HUION:
                stream = depot.loadHuionImage(iconName);
                break;

            case OEMType.GAOMON:
                stream = depot.loadGaomonImage(iconName);
                break;

            default:
                stream = depot.loadTalbetDriverImage(iconName);
                break;
            }

            Icon icon = new Icon(stream);

            stream.Close();
            stream.Dispose();
            return(icon);
        }
Beispiel #3
0
        public FormInfo(OEMType oemType, Action updateProfiles, string currentProfile, Dictionary <string, HNStruct.PerAppSetting> settings)
        {
            this._updateProfiles = updateProfiles;
            this._currentProfile = currentProfile;
            this._settings       = settings;

            this.InitializeComponent();
            this.mOemType = oemType;
            if (this.mOemType != OEMType.HUION)
            {
                this.labelRight.AutoSize = false;
            }
            this.setViewText8Locale();
            this.buttonExport.Click          += new EventHandler(Fixer4Info.exportConfigClick);
            this.buttonImport.Click          += new EventHandler(Fixer4Info.importConfigClick);
            this.buttonRefreshProfiles.Click += new EventHandler(refreshProfilesClick);
            this.buttonDefault.Click         += new EventHandler(Fixer4Info.defaultConfigClick);
            this.buttonLOGO.Click            += new EventHandler(Fixer4Info.logoConfigClick);
            this.buttonWeb.Click             += new EventHandler(Fixer4Info.logoConfigClick);
        }