예제 #1
0
        private void HookLivePreviewFormEvents()
        {
            this.LivePreviewForm.SizeChanged += (s, e) =>
            {
                this.previewFormSize = this.LivePreviewForm.Size;
            };

            this.LivePreviewForm.FormClosing += (s, e) =>
            {
                this.tsmShowLivePreview.Checked = false;
                this.OnUnhookLivePreviewFormEvents();
                this.previousimeViewControl = this.LivePreviewForm.TimeViewControl;
                this.previousCommandIssuer  = this.LivePreviewForm.CommandIssuer;
            };
        }
예제 #2
0
        public PresentationTimerForm(TimeViewControl timeViewControl)
        {
            InitializeComponent();

            this.Text = Util.GetFormName("Display Window");

            this.TimeViewControl               = timeViewControl;
            this.TimeViewControl.Dock          = DockStyle.Fill;
            this.TimeViewControl.IsPreviewMode = false;
            this.TimeViewControl.Location      = new System.Drawing.Point(0, 0);
            this.TimeViewControl.Name          = "timerView";
            this.TimeViewControl.Size          = new System.Drawing.Size(484, 249);
            this.TimeViewControl.TabIndex      = 0;
            this.TimeViewControl.KeyDown      += new System.Windows.Forms.KeyEventHandler(this.timerView_KeyDown);
            this.Controls.Add(this.TimeViewControl);
        }