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