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

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

            Connect();
            LoadDefaultDirectory();
        }
예제 #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;
        }
예제 #5
0
파일: FTPRoot.cs 프로젝트: kkalinowski/nex
 public FTPRoot(Account account)
 {
     path = "/";
 }
예제 #6
0
 public void AddNewAccount(Account account)
 {
     Accounts.Add(account);
 }