Example #1
0
        public Login()
        {
            InitializeComponent();

            Lang.ItemsSource = new List <string> {
                "English", "עברית"
            };

            if (ContainsEnglish(username.Text))
            {
                Lang.SelectedIndex = 0;
            }
            else
            {
                Lang.SelectedIndex = 1;
            }

            try
            {
                bl = SingletonFactoryBL.GetBL();
            }
            catch (BlFileErrorException)
            {
                MessageBox.Show("There was a problem with the files!", "Error!", MessageBoxButton.OK, MessageBoxImage.Error);
                Exit_Click(null, null);
            }

            bl.ActivateExpiredOrdersThread();
        }