private void button1_Click(object sender, EventArgs e) { try { FunkProfiles funk = new FunkProfiles(); Logger.WriteLine("current profile: " + funk.getCurrentProfile().ToString()); funk.setCurrentProfile("Profile_2"); Logger.WriteLine("current profile: " + funk.getCurrentProfile().ToString()); }catch (NotSupportedException ex) { MessageBox.Show(ex.Message); } }
public Profile getCurrentProfile() { return(_profiles.getCurrentProfile()); }