public SwaggerInputView(FromSwaggerCommand command) { _command = command; InitializeComponent(); Model.Command = command; Model.RaiseAllPropertiesChanged(); }
public SwaggerInputView(FromSwaggerCommand command) { _command = command; InitializeComponent(); var hasInputSwaggerUrl = !string.IsNullOrEmpty(_command.Url); if (hasInputSwaggerUrl) { _command.Swagger = string.Empty; } Model.Command = command; Model.RaiseAllPropertiesChanged(); if (hasInputSwaggerUrl) { Model.LoadSwaggerUrlAsync(); } }