public LoginProgram(string[] args) { WorkingClass wd = new WorkingClass(); WireEventHandlers(wd); wd.DoWork(); Console.WriteLine("Done"); Console.ReadLine(); }
private void WireEventHandlers(WorkingClass wd) { LoginHandler handler = new LoginHandler(OnHandler1); wd.LoginEvent += handler; }