コード例 #1
0
ファイル: MainForm.cs プロジェクト: Theo47/depressurizer
        private void menu_Profile_Restore_Profile_Click(object sender, EventArgs e)
        {
            string profilePath = Path.GetDirectoryName(currentProfile.FilePath);
            DlgRestore restore = new DlgRestore(profilePath);

            DialogResult res = restore.ShowDialog();

            if (restore.Restored)
            {
                ClearStatus();
                LoadProfile(currentProfile.FilePath, false);
                FlushStatus();
            }
        }
コード例 #2
0
ファイル: MainForm.cs プロジェクト: Theo47/depressurizer
        private void menu_Profile_Restore_Config_Click(object sender, EventArgs e)
        {
            string sharedconfigPath = Path.GetDirectoryName(string.Format(Properties.Resources.ConfigFilePath, Settings.Instance.SteamPath, Profile.ID64toDirName(currentProfile.SteamID64)));
            DlgRestore restore = new DlgRestore(sharedconfigPath);

            DialogResult res = restore.ShowDialog();

            if (restore.Restored)
            {
                ClearStatus();
                ImportConfig();
                FlushStatus();
            }
        }