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(); } }
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(); } }