public EditorViewModel(Profile p) { this.profile = p; this.configurations = new ObservableCollection<Configuration>(p.Configurations); }
public void NewCommand_Executed(object sender) { Profile p = new Profile("Profile#" + editors.Count); EditorViewModel evm = new EditorViewModel(p); editors.Add(evm); editing = true; ActiveEditor = editors.Count - 1; // TODO Handle with trigger //if (editors.Count == 1) //{ //txtWelcome.Visibility = Visibility.Collapsed; //TabControlEditor.Visibility = Visibility.Visible; //} }
public void setup() { this.profile = new Profile("DefaultProfile"); }