public FrmBackgroundPresent(FrmBackgroundManage view) { this.View = view; this.View.BtnDatabase.Click += new EventHandler(BtnDatabaseClick); this.View.BtnOrganization.Click += new EventHandler(BtnOrganizationClick); this.View.BtnAuthority.Click += new EventHandler(BtnAuthorityClick); this.View.BtnBaseMessage.Click += new EventHandler(BtnBaseMessageClick); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); FrmBackgroundManage view = new FrmBackgroundManage(); FrmBackgroundPresent fbgp = new FrmBackgroundPresent(view); Application.Run(fbgp.View); }