public ExOKMassageBox(string text, string title, MessageType mType) { InitializeComponent(); model = new Models.ExMassageBoxModel(text, title, mType); vm = new ViewModels.ExOKMassageBoxViewModel(this, model); DataContext = vm; this.Loaded += ExOKMassageBox_Loaded; }
public ExYesNoMessageBoxViewModel(Views.ExYesNoMessageBox view, Models.ExMassageBoxModel model) : base(view, model) { this.view = view; this.model = model; MsgText = model.ToReactivePropertyAsSynchronized(m => m.Text); MsgTitle = model.ToReactivePropertyAsSynchronized(m => m.Title); YesBtClick = new DelegateCommand(YesBt_Click); NoBtClick = new DelegateCommand(NoBt_Click); }