Example #1
0
 public FtpRcverConfigVm()
 {
     this.AddCmd      = new DelegateCommand(Add);
     this.ModifyCmd   = new DelegateCommand(Modify);
     this.DeleteCmd   = new DelegateCommand(Delete);
     this.ChangeCmd   = new DelegateCommand <object>(Change);
     config           = new FtpAddressConfig();
     this.ContactList = new ObservableCollection <FtpAddress>(config.ListFtpAddr);
 }
Example #2
0
 public SendFtpVm()
 {
     this.SendCmd     = new DelegateCommand(Send);
     this.OpenCmd     = new DelegateCommand(Open);
     this.ChangeCmd   = new DelegateCommand <object>(Change);
     this.fileName    = "";
     this.path        = "";
     config           = new FtpAddressConfig();
     this.ContactList = new ObservableCollection <FtpAddress>(config.ListFtpAddr);
 }
Example #3
0
        public void InitFtpInfo()
        {
            FtpAddressConfig config = new FtpAddressConfig();

            this.FtpOptions = new ObservableCollection <FtpGroupOption>();
            foreach (var item in config.ListFtpAddr)
            {
                var op = new FtpGroupOption(item);
                this.FtpOptions.Add(op);
            }
        }