protected void OnRequestingConfigPath(DialogEventArgs <RequestConfigPathViewModel> e) { if (this.RequestingConfigPath != null) { RequestingConfigPath(this, e); } }
protected void OnRequestingConfigName(DialogEventArgs <RequestConfigNameViewModel> e) { if (this.RequestingConfigName != null) { RequestingConfigName(this, e); } }
private bool TryRequestConfigName(ref string configName) { var vm = new RequestConfigNameViewModel(this.configManager, configName); var args = new DialogEventArgs <RequestConfigNameViewModel>(vm); OnRequestingConfigName(args); if (args.Update && vm.IsConfigNameValid) { configName = vm.ConfigName; return(true); } else { configName = null; return(false); } }