public Form1() { InitializeComponent(); _model.Commands.Add(new NewCommand()); _model.Commands.Add(new SaveCommand()); _model.Commands.Add(new LoadCommand()); _model.Commands.Add(new RubberCommand()); _model.Commands.Add(new ChangeColorCommand()); _model.Commands.Add(new DrawElipseCommand()); _model.Commands.Add(new QuitCommand()); UpdateFormTitle(); _doc.FilePathChanged += (s, e) => UpdateFormTitle(); _doc.IsDirtyChanged += (s, e) => UpdateFormTitle(); _model.LoadAvailablePlugins(); _model.OnQuit += (s, e) => Close(); }