public LabelViewModel(ILabel model, MainViewModel main) : base(main) { if (model == null) throw new ArgumentNullException("model"); this.model = model; main.RegisterViewModel(model, this); LoadViewModels(); }
public AttachmentViewModel(IAttachment model, MainViewModel main) : base(main) { if (model == null) throw new ArgumentNullException("model"); this.model = model; openAttachment = new OpenAttachmentCommand(this); saveAttachment = new SaveAttachmentCommand(this); main.RegisterViewModel(model, this); LoadViewModels(); }
public NoteViewModel(INote model, MainViewModel main) : base(main) { if (model == null) throw new ArgumentNullException("model"); this.model = model; update = new UpdateLabelsCommand(this); newAttachment = new NewAttachmentCommand(this); deleteAttachment = new DeleteAttachmentCommand(this); main.RegisterViewModel(model, this); LoadViewModels(); }
public NoteViewModel(MainViewModel main) : base(main) { this.model = new NoteMock(); }
public MetainfoViewModel(IMetainfo model, MainViewModel main) : base(main) { this.model = model; main.RegisterViewModel(model, this); }
public ComplexSearchViewModel(MainViewModel main) : base(main) { }
public SheetViewModelBase(MainViewModel main) { this.main = main; }