コード例 #1
0
        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];
            }
        }
コード例 #2
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"));
        }
コード例 #3
0
        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);
        }
コード例 #4
0
 public PDFImportDialog(PresentationHandling pPresHandling)
 {
     InitializeComponent();
     presHandling = pPresHandling;
 }
コード例 #5
0
 public PhotonClient(PresentationHandling pPresHandling)
 {
     presHandling             = pPresHandling;
     this.loadBalancingClient = new LoadBalancingClient();
     this.SubscribeToCallbacks();
 }