コード例 #1
0
 /// <summary>
 /// Create a new FTP transfer agent.
 /// </summary>
 public FtpSession()
 {
     _remoteHost = "localhost";
     _remotePath = ".";
     _remoteUser = "******";
     _remotePass = "******";
     _remotePort = 21;
     _debug      = false;
     _logined    = false;
     PassiveMode = true;
     _listMode   = DirectoryListMode.PlatformList;
 }
コード例 #2
0
ファイル: FTPFactory.cs プロジェクト: hibri/Shift-it
 /// <summary>
 /// Create a new FTP transfer agent.
 /// </summary>
 public FTPFactory()
 {
     remoteHost = "localhost";
     remotePath = ".";
     remoteUser = "******";
     remotePass = "******";
     remotePort = 21;
     debug = false;
     logined = false;
     passive_mode = true;
     listMode = DirectoryListMode.PlatformList;
 }
コード例 #3
0
ファイル: FtpSession.cs プロジェクト: i-e-b/Shift-it
 /// <summary>
 /// Create a new FTP transfer agent.
 /// </summary>
 public FtpSession()
 {
     _remoteHost = "localhost";
     _remotePath = ".";
     _remoteUser = "******";
     _remotePass = "******";
     _remotePort = 21;
     _debug = false;
     _logined = false;
     PassiveMode = true;
     _listMode = DirectoryListMode.PlatformList;
 }
コード例 #4
0
 /// <summary>
 /// Create a new FTP transfer agent.
 /// </summary>
 public FTPFactory()
 {
     remoteHost   = "localhost";
     remotePath   = ".";
     remoteUser   = "******";
     remotePass   = "******";
     remotePort   = 21;
     debug        = false;
     logined      = false;
     passive_mode = true;
     listMode     = DirectoryListMode.PlatformList;
 }
コード例 #5
0
ファイル: MainWindow.xaml.cs プロジェクト: xydoublez/RDO.Net
 private void SetDirectoryList(DirectoryListMode value)
 {
     _directoryListPresenter = CreateDirectoryList(_directoryListPresenter, value);
 }
コード例 #6
0
ファイル: MainWindow.xaml.cs プロジェクト: xydoublez/RDO.Net
        private IDirectoryListPresenter CreateDirectoryList(IDirectoryListPresenter oldValue, DirectoryListMode mode)
        {
            if (oldValue != null)
            {
                if (oldValue.Mode == mode)
                {
                    return(oldValue);
                }
                else
                {
                    oldValue.Dispose();
                }
            }

            if (mode == DirectoryListMode.LargeIcon)
            {
                return(new LargeIconListPresenter(_directoryListView, _directoryTreePresenter));
            }
            else if (mode == DirectoryListMode.Details)
            {
                return(new DetailsListPresenter(_directoryListView, _directoryTreePresenter));
            }
            else
            {
                throw new ArgumentException("Invalid DirectoryListMode", nameof(mode));
            }
        }