Esempio n. 1
0
        static void Main(string[] args)
        {
            Intro intro = new Intro();
            DepartmentManagement department = new DepartmentManagement(intro);
            MenuManagement       menu       = new MenuManagement(intro);
            TypeMemberManagement type       = new TypeMemberManagement(intro);
            MemberManagement     member     = new MemberManagement(intro, type);
            StaffManagement      staff      = new StaffManagement(intro, department);
            ReceiptManagement    receipt    = new ReceiptManagement(intro, menu, staff, member);

            intro.ShowListFunction();
        }
        public ReceiptManagement(Intro intro, MenuManagement menu, StaffManagement staff, MemberManagement member)
        {
            ReceiptView view_receipt = new ReceiptView(intro);

            this.receipt_view  = view_receipt;
            this.staff_manage  = staff;
            this.menu_manage   = menu;
            this.member_manage = member;
            receipt_view.Init(this);
            listReceiptDetail         = new List <ReceiptDetail>();
            tempListReceiptDetail     = new List <ReceiptDetail>();
            listReceipt               = new List <Receipt>();
            view_receipt.OnPrintMenu += menu.PrintMenu;
            IOMethod.Instance.ReadData <ReceiptDetail>(pathDetail, ref listReceiptDetail);
            IOMethod.Instance.ReadData <Receipt>(path, ref listReceipt);
        }
 public void Init(MenuManagement menu_control)
 {
     this.menu_control = menu_control;
 }