Esempio n. 1
0
        public NSwagDocument()
        {
            WebApiToSwaggerCommand = new WebApiToSwaggerCommand();
            AssemblyTypeToSwaggerCommand = new AssemblyTypeToSwaggerCommand();

            SwaggerToTypeScriptCommand = new SwaggerToTypeScriptCommand();
            SwaggerToCSharpCommand = new SwaggerToCSharpCommand();
        }
        public WebApiSwaggerGeneratorView(WebApiToSwaggerCommand command)
        {
            InitializeComponent();
            ViewModelHelper.RegisterViewModel(Model, this);
            Model.Command = command;

            ControllersList.SelectedItems.Clear();
            foreach (var controller in Model.Command.ControllerNames)
                ControllersList.SelectedItems.Add(controller);
        }
 public WebApiSwaggerGeneratorView(WebApiToSwaggerCommand command)
 {
     InitializeComponent();
     ViewModelHelper.RegisterViewModel(Model, this);
     Model.Command = command; 
 }