示例#1
0
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
            lblLocation.Text      = ConfigManager.DefaultDocumentsFolder;
            lblLocation.ForeColor = Color.Blue;
            lblCancel.ForeColor   = Color.Blue;

            ResourceHelper.ApplyResources(this);
        }
示例#2
0
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
            ThemeHelper.FixMonoColors(this);
            lblLocation.Text      = ConfigManager.DefaultDocumentsFolder;
            lblLocation.ForeColor = ThemeHelper.Theme.LinkTextColor;
            lblCancel.ForeColor   = ThemeHelper.Theme.LinkTextColor;

            ResourceHelper.ApplyResources(this);
        }
示例#3
0
        private void mnuPreferences_Click(object sender, EventArgs e)
        {
            using (frmPreferences frm = new frmPreferences()) {
                VsDualOutputOption originalVsDualOutput = ConfigManager.Config.PreferenceInfo.VsDualVideoOutput;

                if (frm.ShowDialog(sender, this) == DialogResult.OK)
                {
                    if (frm.NeedRestart)
                    {
                        //Data folder has changed, end process
                        ConfigManager.DoNotSaveSettings = true;
                        this.Close();
                        return;
                    }

                    VsDualOutputOption newVsDualOutput = ConfigManager.Config.PreferenceInfo.VsDualVideoOutput;
                    if (originalVsDualOutput != newVsDualOutput)
                    {
                        if (newVsDualOutput == VsDualOutputOption.Both || originalVsDualOutput == VsDualOutputOption.Both)
                        {
                            UpdateViewerSize(true);
                        }
                        else
                        {
                            UpdateDualSystemViewer();
                        }
                    }
                    ResourceHelper.LoadResources(ConfigManager.Config.PreferenceInfo.DisplayLanguage);
                    ResourceHelper.UpdateEmuLanguage();
                    ResourceHelper.ApplyResources(this);
                    UpdateMenus();
                    InitializeNsfMode();
                    if (_emuThread == null)
                    {
                        ShowRecentGames();
                    }
                    TopMost         = ConfigManager.Config.PreferenceInfo.AlwaysOnTop;
                    FormBorderStyle = ConfigManager.Config.PreferenceInfo.DisableMouseResize ? FormBorderStyle.Fixed3D : FormBorderStyle.Sizable;
                }
                else
                {
                    UpdateVideoSettings();
                    UpdateMenus();
                    UpdateViewerSize();
                }
            }
            ResizeRecentGames(sender, e);
        }
示例#4
0
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            if (!DesignMode)
            {
                if (!_iconSet)
                {
                    base.Icon = Properties.Resources.MesenIcon;
                }
            }

            int tabIndex = 0;

            InitializeTabIndexes(this, ref tabIndex);
            ResourceHelper.ApplyResources(this);
        }
示例#5
0
 private void mnuPreferences_Click(object sender, EventArgs e)
 {
     using (frmPreferences frm = new frmPreferences()) {
         if (frm.ShowDialog(sender, this) == DialogResult.OK)
         {
             ResourceHelper.LoadResources(ConfigManager.Config.PreferenceInfo.DisplayLanguage);
             ResourceHelper.UpdateEmuLanguage();
             ResourceHelper.ApplyResources(this);
             UpdateMenus();
             InitializeNsfMode(true);
             ctrlRecentGames.UpdateGameInfo();
             TopMost = ConfigManager.Config.PreferenceInfo.AlwaysOnTop;
         }
         else
         {
             UpdateVideoSettings();
             UpdateMenus();
             UpdateViewerSize();
         }
     }
     ResizeRecentGames(sender, e);
 }
示例#6
0
        private void mnuPreferences_Click(object sender, EventArgs e)
        {
            using (frmPreferences frm = new frmPreferences()) {
                VsDualOutputOption originalVsDualOutput = ConfigManager.Config.PreferenceInfo.VsDualVideoOutput;

                if (frm.ShowDialog(sender, this) == DialogResult.OK)
                {
                    VsDualOutputOption newVsDualOutput = ConfigManager.Config.PreferenceInfo.VsDualVideoOutput;
                    if (originalVsDualOutput != newVsDualOutput)
                    {
                        if (newVsDualOutput == VsDualOutputOption.Both || originalVsDualOutput == VsDualOutputOption.Both)
                        {
                            UpdateViewerSize(true);
                        }
                        else
                        {
                            UpdateDualSystemViewer();
                        }
                    }
                    ResourceHelper.LoadResources(ConfigManager.Config.PreferenceInfo.DisplayLanguage);
                    ResourceHelper.UpdateEmuLanguage();
                    ResourceHelper.ApplyResources(this);
                    UpdateMenus();
                    InitializeNsfMode();
                    ctrlRecentGames.UpdateGameInfo();
                    TopMost         = ConfigManager.Config.PreferenceInfo.AlwaysOnTop;
                    FormBorderStyle = ConfigManager.Config.PreferenceInfo.DisableMouseResize ? FormBorderStyle.Fixed3D : FormBorderStyle.Sizable;
                }
                else
                {
                    UpdateVideoSettings();
                    UpdateMenus();
                    UpdateViewerSize();
                }
            }
            ResizeRecentGames(sender, e);
        }