public int setProfile(string sProfile) { if (_profiles.setCurrentProfile(sProfile)) { return(1); } else { return(0); } }
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); } }