public SettingWindowViewModel(WindowService windowService, SettingModel model) : base(windowService, model) { this.model = model; #region Event Initialize GetSvFilePathBtClick = new DelegateCommand(GetSvFilePathBt_Click); GetConfFilePathBtClick = new DelegateCommand(GetConfFilePathBt_Click); GetAdminFilePathBtClick = new DelegateCommand(GetAdminFilePathBt_Click); KeyEditBtClick = new DelegateCommand(KeyEditBt_Click); GetBackupDirBtClick = new DelegateCommand(GetBackupDirBt_Click); SaveBtClick = new DelegateCommand(SaveBt_Click); #endregion #region Property Initialize ExeFilePathText = model.ToReactivePropertyAsSynchronized(m => m.ExeFilePath); ConfigFilePathText = model.ToReactivePropertyAsSynchronized(m => m.ConfigFilePath); AdminFilePathText = model.ToReactivePropertyAsSynchronized(m => m.AdminFilePath); IsLogGetterChecked = model.ToReactivePropertyAsSynchronized(m => m.IsLogGetter); ConsoleLengthText = model.ToReactivePropertyAsSynchronized(m => m.ConsoleLengthText); IsBetaModeChecked = model.ToReactivePropertyAsSynchronized(m => m.IsBetaMode); IsAutoUpdateChecked = model.ToReactivePropertyAsSynchronized(m => m.IsAutoUpdate); BackupDirPath = model.ToReactivePropertyAsSynchronized(m => m.BackupDirPath); #endregion }