private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     if (Environment.GetCommandLineArgs()?.Any(item =>
                                               item != null && ( bool )item?.Equals("--configure")) == true)
     {
         SettingsManager.Instance.ShowEditor();
         ConfigureBl.UpdateSettings(SettingsManager.Instance.GetSettings());
     }
     (this.root.DataContext as MainWindowViewModel).Init();
 }
Exemplo n.º 2
0
        /// <summary>
        /// Initializes the business logic and updates the view
        /// </summary>
        public void Init( )
        {
            try
            {
                ConfigureBl.Initialize();

                updateView();
            }
            catch (Exception ex)
            {
                ExceptionHelper.Handle(ex);
            }
        }
Exemplo n.º 3
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);
            }
        }