Example #1
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);
            }
        }
Example #2
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;
            }
        }