コード例 #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();
        }
コード例 #2
0
        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);
        }
コード例 #3
0
 public void Init(MenuManagement menu_control)
 {
     this.menu_control = menu_control;
 }