/// <summary>
 /// Hide / show temp with canvas layer
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void HideShowBackgroundCanvas(object sender, EventArgs e)
 {
     if (bgwn.IsVisible)
     {
         bgwn.Hide();
     }
     else
     {
         bgwn.Show();
     }
 }
        /// <summary>
        /// MainWindow Ctr - init variables
        /// </summary>
        /// <param name="iCourseID">Course id of current lecture</param>
        public MainWindow(int iCourseID)
        {
            realTimeCasting = new ScreenShareServer();
            realTimeCasting.InitServer();
            toolsWindow.SetCourseID(iCourseID);
            courseID = iCourseID;
            InitializeComponent();
            blankBackground = new backgroundWindow();
            bgwn            = new backgroundWindow();
            bgwn.Show();
            //global hotkeys:

            //SetupHotKey(_host.Handle);
            //ComponentDispatcher.ThreadPreprocessMessage += new ThreadMessageEventHandler(ComponentDispatcher_ThreadPreprocessMessage);
        }
        /// <summary>
        /// MainWindow Ctr - init variables
        /// </summary>
        /// <param name="iCourseID">Course id of current lecture</param>
        public MainWindow(int iCourseID)
        {
            realTimeCasting = new ScreenShareServer();
            realTimeCasting.InitServer();
            toolsWindow.SetCourseID(iCourseID);
            courseID = iCourseID;
            InitializeComponent();
            blankBackground = new backgroundWindow();
            bgwn = new backgroundWindow();
            bgwn.Show();
            //global hotkeys:

            //SetupHotKey(_host.Handle);
            //ComponentDispatcher.ThreadPreprocessMessage += new ThreadMessageEventHandler(ComponentDispatcher_ThreadPreprocessMessage);
        }