示例#1
0
 public FtpExplorerView(Libraries.FtpManager.Model.Connections.FtpConnectionModel ftpConnection)
 {
     // Inicializa los componentes
     InitializeComponent();
     // Asigna la clase del ViewModel
     ViewModel = new FtpExplorerViewModel(ftpConnection);
     udtFtpConnection.ViewModelData = ViewModel.FtpTreeExplorerViewModel;
     FormView = new BaseFormView(ViewModel);
 }
 /// <summary>
 ///		Abre la conexión a un servidor FTP
 /// </summary>
 public void OpenFormFtp(Libraries.FtpManager.Model.Connections.FtpConnectionModel ftpConnection)
 {
     FtpManagerPlugin.MainInstance.HostPluginsController.LayoutController.ShowDocument($"FTP_EXPLORER_{ftpConnection.Server}", "Explorador FTP",
                                                                                       new Views.FtpExplorer.FtpExplorerView(ftpConnection));
 }