public void Load_settings() { if (!System.IO.File.Exists("APPSettings.ini")) { Settings set = new Settings(this); set.buid_settings(); } else { string[] lines = System.IO.File.ReadAllLines("APPSettings.ini"); foreach (string line in lines) { if (line.ToLower().StartsWith("APP_Citra_Path=")) { APP_Citra_Path = line.ToLower().Substring("APP_Citra_Path=".Length); } else if (line.ToLower().StartsWith("APP_Download_url=")) { APP_Download_url = line.ToLower().Substring("APP_Download_url=".Length); } else if (line.ToLower().StartsWith("APP_use_internal_version=")) { APP_use_internal_version = Convert.ToBoolean(line.ToLower().Substring("APP_use_internal_version=".Length)); } } } return; }
private void button3_Click(object sender, EventArgs e) { Settings set = new Settings(this); set.ShowDialog(); }