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); }
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); }
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); } }