Exemplo n.º 1
0
 protected void OnRequestingConfigPath(DialogEventArgs <RequestConfigPathViewModel> e)
 {
     if (this.RequestingConfigPath != null)
     {
         RequestingConfigPath(this, e);
     }
 }
Exemplo n.º 2
0
 protected void OnRequestingConfigName(DialogEventArgs <RequestConfigNameViewModel> e)
 {
     if (this.RequestingConfigName != null)
     {
         RequestingConfigName(this, e);
     }
 }
Exemplo n.º 3
0
        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);
            }
        }