Exemplo n.º 1
0
        public FormWelcome()
        {
            InitializeComponent();
            this.FormClosing += FormWelcome_FormClosing;

            // Make this form translatable:
            LocalizedForm form = new LocalizedForm(this, null);

            Localization.LocalizedForms.Add(form);
        }
Exemplo n.º 2
0
        public FormSettings()
        {
            InitializeComponent();

            // Make this form translatable:
            LocalizedForm form = new LocalizedForm(this, this.toolTip);

            form.SpecialControls.Add(this.contextMenuStripGame);
            Localization.LocalizedForms.Add(form);

            // Handle translations:
            Translation.LanguageChanged += OnLanguageChanged;

            // Assign a dropdown menu to hold languages:
            Localization.AssignDropDown(this.comboBoxLanguage);

            Translation.BlackList.AddRange(new string[] {
                "buttonDownloadLanguages",
                "buttonRefreshLanguage",
                "labelNMUserID",
                "labelNMHourlyRateLimit",
                "labelNMAPIKeyStatus",
                "labelNMUserName",
                "labelNMDailyRateLimitReset",
                "labelNMMembership",
                "labelNMDailyRateLimit"
            });

            // Link tweaks
            LinkInfo();
            LinkControlsToTweaks();

            // Load NexusMods
            NexusMods.Load();


            // Init components / assign event handler:
            this.listViewGameInstances.HeaderStyle  = ColumnHeaderStyle.None;
            this.listViewGameInstances.DoubleClick += listViewGameInstances_DoubleClick;

            this.backgroundWorkerDownloadLanguages.RunWorkerCompleted   += backgroundWorkerDownloadLanguages_RunWorkerCompleted;
            this.backgroundWorkerRetrieveProfileInfo.RunWorkerCompleted += backgroundWorkerRetrieveProfileInfo_RunWorkerCompleted;
            this.FormClosing += FormSettings_FormClosing;

            SingleSignOn.SSOFinished += SingleSignOn_SSOFinished;
        }