예제 #1
0
        public void Run()
        {
            "PassFruit".Message();

            //do {
            //    var confirm =
            //        "Test Confirm"
            //            .Option("y", () => "Confirmed".Message())
            //            .Confirm();

            //    if (confirm) {
            //        "OK".Message();
            //    } else {
            //        "KO".Message();
            //    }

            //    "Options in Loop"
            //        .Option("a", () => "Option A".Message())
            //        .Option("b", () => "Option B".Message())
            //        .Option("c", () => "Option C".Message())
            //        .ChooseAndLoopOptions();

            // var selected = ...
            //    "Single option"
            //        .Option("a", () => "Option A".Message())
            //        .Option("b", () => "Option B".Message())
            //        .Option("c", () => "Option C".Message())
            //        .Choose(true);
            //} while (true);

            // .Options

            var accountSection = new AccountSection(_dataStore);

            do
            {
                accountSection.ChooseAccount();
            } while (!Exit());
        }
예제 #2
0
파일: Main.cs 프로젝트: Cyarix/PassFruit
        public void Run()
        {
            "PassFruit".Message();

            //do {
            //    var confirm =
            //        "Test Confirm"
            //            .Option("y", () => "Confirmed".Message())
            //            .Confirm();

            //    if (confirm) {
            //        "OK".Message();
            //    } else {
            //        "KO".Message();
            //    }

            //    "Options in Loop"
            //        .Option("a", () => "Option A".Message())
            //        .Option("b", () => "Option B".Message())
            //        .Option("c", () => "Option C".Message())
            //        .ChooseAndLoopOptions();

            // var selected = ...
            //    "Single option"
            //        .Option("a", () => "Option A".Message())
            //        .Option("b", () => "Option B".Message())
            //        .Option("c", () => "Option C".Message())
            //        .Choose(true);
            //} while (true);

            // .Options

            var accountSection = new AccountSection(_dataStore);
            do {
                accountSection.ChooseAccount();
            } while (!Exit());
        }
예제 #3
0
 public AccountDetailSection(AccountSection parentSection)
 {
     _parentSection = parentSection;
 }
예제 #4
0
 public AccountDetailSection(AccountSection parentSection)
 {
     _parentSection = parentSection;
 }