private void btnLoad_Click(object sender, EventArgs e) { if (activeWindow != null) { string filename = Path.GetDirectoryName(Application.ExecutablePath); filename += CHARACTERS_PATH + HttpUtility.UrlEncode(ActiveWindow.CharacterName) + ".xml"; if (!File.Exists(filename)) { return; //throw new Exception("Not exists: " + filename); } activeWindow.LoadFile(filename); } RefreshCharactersList(); }