Esempio n. 1
0
        private void Startup(object sender, EventArgs e)
        {
            // Bind action member
            action = (App.Current as App).action;
            action.Update_Event += new AppAction.UpdateDelegate(PageFrame_Naviagte);
            action.Warning_Event += new AppAction.WarningDelegate(WarningPopup_Show);
            action.Bankrupt_Event += new AppAction.BankruptDelegate(BankruptPopup_Show);

            // Show Startup
            StartupWindow win = new StartupWindow();
            win.Closing += new CancelEventHandler(Startup_Returning);
            win.ShowDialog();

            // Navigate to the Page
            PageFrame_Naviagte();
        }
Esempio n. 2
0
 public App()
 {
     action = new Actions.AppAction();
 }
Esempio n. 3
0
 public App()
 {
     action = new Actions.AppAction();
     accessDB = new AccessDB();
     accessDB.DeleteAllRecord();
 }