public void EditAccount(Account acc) { //OPT: Need to edit a type tUrl.Text = acc.Url; tUserName.Text = acc.UserName; tPassword.Password = acc.Password; chbIsDefault.IsChecked = acc.IsDefault; }
public FTPFileSystem(Account account, string path) { Root = new FTPRoot(account); this.account = account; Connect(); LoadDirectory(path); }
public FTPFileSystem(Account account) { Root = new FTPRoot(account); this.account = account; Connect(); LoadDefaultDirectory(); }
private void bOK_Click(object sender, RoutedEventArgs e) { if (tUrl.Text == string.Empty) { MessageBox.Show("Podaj adres serwisu"); return; } if (tUserName.Text == string.Empty) { MessageBox.Show("Podaj nazwę użytkownika"); return; } Account = new Account(tUrl.Text, tUserName.Text, tPassword.Password, chbIsDefault.IsChecked.Value); DialogResult = true; }
public FTPRoot(Account account) { path = "/"; }
public void AddNewAccount(Account account) { Accounts.Add(account); }