private void configureListeners(ICommandEventDispatcher main) { main.CommandEventHandler += commandHandler; main.LoginDialog.CommandEventHandler += commandHandler; graphDataManager.OnData += main.OnData; requestController.RequestsHelper.OnError += main.OnRequestError; }
public OkController(ICommandEventDispatcher main) { graphDataManager = new GraphDataManager(); requestController = new RequestController(); requestController.DeleteCookies(); updateMainForm(main); configureListeners(main); }
private void updateMainForm(ICommandEventDispatcher main) { main.LoginDialog.AuthUri = requestController.AuthUri; main.DialogAttributes = graphDataManager.OkDialogAttributes; }