예제 #1
0
 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();
 }
예제 #3
0
 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();
 }
예제 #4
0
 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;
 }