Пример #1
0
        public static void accountDemo()
        {
            System.Console.WriteLine("#### AccountDemo\n");

            Base.AccountTrunk trunk = new Base.AccountTrunk(50);

            trunk.addInstrument("OTP Optima", 34.3343);
            trunk.addInstrument("Rafi Perspektiva", 43.4354);

            trunk.addAccount(5000, "T.Elek", "00-00");
            trunk.addAccount(5000, "N.Erno", "11-11");
            trunk.addAccount(1000, "D.Vader", "22-22");
            trunk.addAccount(1000, "K.Bela", "33-33");
            trunk.addAccount("OTP Optima", 10, "N.Erno", "44-44");
            trunk.addAccount("Rafi Perspektiva", 2, "K.Bela", "55-55");

            System.Console.WriteLine(trunk);
            System.Console.WriteLine(trunk.getPeopleValue());
        }
Пример #2
0
 public static void eventDemo()
 {
     System.Console.WriteLine("#### EventDemo\n");
     Base.AccountTrunk trunk = new Base.AccountTrunk(50);
     Program.processEventDemo(trunk);
 }