public MainWindow(WelcomeWindow pCallerWindow, CoordinatorConnection pConnection, StartMode pMode, string pPath) { InitializeComponent(); callerWindow = pCallerWindow; switch (pMode) { case StartMode.New: { presentationHandler = new PresentationHandling(pConnection, pMode, pPath, this); connectPresentationWithUI(); break; } case StartMode.Open: { presentationHandler = new PresentationHandling(pConnection, pMode, pPath, this); connectPresentationWithUI(); break; } default: { presentationHandler = new PresentationHandling(pConnection, this); connectPresentationWithUI(); break; } } //set initial stage selection to first stage if (presentationHandler.openPresentation.stages.Count > 0) { presentationHandler.SelectedStage = presentationHandler.openPresentation.stages[0]; } }
public MainWindow(WelcomeWindow pCallerWindow) { InitializeComponent(); callerWindow = pCallerWindow; //Initialize the Presentation handler presentationHandler = new PresentationHandling(new CoordinatorConnection(), this); //connect Presentation in Presentation handler to UI stageList.ItemsSource = presentationHandler.openPresentation.stages; presentationHandler.openPresentation.stages.Add(new Stage("Test Stage")); }
public PresentationWindow(MainWindow pCaller, PresentationHandling pPresentationHandler, int pStageCount) { InitializeComponent(); callerWindow = pCaller; presentationHandler = pPresentationHandler; presentationHandler.presentationWindow = this; PreviewKeyDown += (s, e) => { if (e.Key == Key.Escape) { presentationHandler.stopPresentation(); } if (e.Key == Key.Left) { previousStage(); } if (e.Key == Key.Right) { nextStage(); } }; presentationHandler.startPresentation(canvasPreview, pStageCount); }
public PDFImportDialog(PresentationHandling pPresHandling) { InitializeComponent(); presHandling = pPresHandling; }
public PhotonClient(PresentationHandling pPresHandling) { presHandling = pPresHandling; this.loadBalancingClient = new LoadBalancingClient(); this.SubscribeToCallbacks(); }