Пример #1
0
        public MainWindow()
        {
            InitializeComponent();
            Classes.TheConnectionString();
            Classes.GetWS();
            Classes.GetDateFormate();
            Classes.GetDateTimeFormate();
            //DateTime DatetimeNow = new DateTime();
            //DatetimeNow = DateTime.Now;
            //if (DatetimeNow.Date > Convert.ToDateTime("11/1/2020"))
            //{
            //    MessageBox.Show("Please Check The Licence");
            //    System.Windows.Application.Current.Shutdown();
            //    return;
            //}
            Classes.UpdateDateFormat();
            Classes.Language();
            //Calculation.Calculate();
            NameofForm.Text = "Food Cost";
            //int num = (DateTime.Now.Hour* DateTime.Now.Day) +0x21;
            Classes.RetrieveTheYearAndMonth();
            //Check_Month();
            LogIn logIn = new LogIn();

            logIn.ShowDialog();
            if (logIn.CheckToLogin == false)
            {
                System.Windows.Application.Current.Shutdown();
            }
        }