Beispiel #1
0
 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;
 }
Beispiel #2
0
        public FTPFileSystem(Account account, string path)
        {
            Root = new FTPRoot(account);
            this.account = account;

            Connect();
            LoadDirectory(path);
        }
Beispiel #3
0
        public FTPFileSystem(Account account)
        {
            Root = new FTPRoot(account);
            this.account = account;

            Connect();
            LoadDefaultDirectory();
        }
Beispiel #4
0
        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;
        }
Beispiel #5
0
 public FTPRoot(Account account)
 {
     path = "/";
 }
Beispiel #6
0
 public void AddNewAccount(Account account)
 {
     Accounts.Add(account);
 }