private void btSettings_Click(object sender, EventArgs e) { SettingWindow settings = new SettingWindow(); if (infos.IsMounted) { settings.loadSettings(true); settings.readOnly(); settings.ShowDialog(); } else { settings.loadSettings(false); settings.ShowDialog(); } }