Example #1
0
        static void Main()
        {
            DBContextInitializerBL db = new DBContextInitializerBL();

            db.InitDb();
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            //KoontabiTelerikWinFormsApp.Splash.KoontabiSplashRadForm splash = new KoontabiTelerikWinFormsApp.Splash.KoontabiSplashRadForm();
            //if (splash.ShowDialog() == DialogResult.OK)
            //{
            //    Login.LoginRadForm login = new Login.LoginRadForm();
            //    if (login.ShowDialog() == DialogResult.OK)
            //    {

            //        Application.Run(new MainRadRibbonForm(currentEmployee));
            //    }

            //}

            //For Testing
            Application.Run(new MainRadRibbonForm(new Employee()
            {
                FullName = "Text"
            }));
        }
Example #2
0
 public MainRadRibbonForm(Employee currentEmp)
 {
     InitializeComponent();
     initContext = new DBContextInitializerBL();
     this._servicePaidAccountBL = new PaidAccountsBL();
     initContext.InitDb();
     this.CurrentEmployee = currentEmp;
     GetDateTime();
     timer1.Start();
     timer2.Start();
 }