예제 #1
0
 private void ShowPasswordsOrEditAccount(IAccount account)
 {
     var passwordSection = new PasswordSection();
     var accountDetailSection = new AccountDetailSection(this);
     "Do you want to view (P)asswords or (E)dit account?"
         .Option("p", () => passwordSection.ChoosePassword(account))
         .Option("e", () => accountDetailSection.EditAccount(account))
         .Choose();
 }
예제 #2
0
        private void ShowPasswordsOrEditAccount(IAccount account)
        {
            var passwordSection      = new PasswordSection();
            var accountDetailSection = new AccountDetailSection(this);

            "Do you want to view (P)asswords or (E)dit account?"
            .Option("p", () => passwordSection.ChoosePassword(account))
            .Option("e", () => accountDetailSection.EditAccount(account))
            .Choose();
        }