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(); }
public App() { action = new Actions.AppAction(); }
public App() { action = new Actions.AppAction(); accessDB = new AccessDB(); accessDB.DeleteAllRecord(); }