Example #1
0
        /// <summary>
        /// Initializes the business logic and updates the view
        /// </summary>
        public void Init( )
        {
            try
            {
                ConfigureBl.Initialize();

                updateView();
            }
            catch (Exception ex)
            {
                ExceptionHelper.Handle(ex);
            }
        }
Example #2
0
        static void Main(string[] args)
        {
            Console.WriteLine("Start");
            List <Customer> allCustomer = new List <Customer>();

            try
            {
                ConfigureBl.Initialize();

                /*foreach(Customer c in CustomerManager.GetAllCustomers())
                 * {
                 *  allCustomer.Add(c);
                 * }
                 * Customer manuel = allCustomer.Find(item => item.CustomerId == 4);*/

                RechnungManager.InsertRechnungAsDoc(2);
                //List<byte[]> docs = RechnungManager.GetAllRechnungenForKunde(manuel.CustomerId);
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
        }