Esempio n. 1
0
        public SettingsForm()
        {
            InitializeComponent();

            DesignLanguage.ApplyCustomFont(this.Controls);

            #region Borderless window

            borderlessWindow = new BorderlessWindow(this, false, false);
            borderlessWindow.SendNCWinMessage += SendNCWinMessage;
            this.MaximizedBounds = this.DisplayRectangle;

            #endregion Borderless window

            var highlightDurationTooltip = new ToolTip();
            highlightDurationTooltip.SetToolTip(helpHighlightLength, "How far back before you cover the lens should we start the highlight? Click additional help.");

            var scanSensitivityTooltip = new ToolTip();
            scanSensitivityTooltip.SetToolTip(helpScanSensitivity, "How sensitive should the scanning engine be when looking for marks? Click additional help.");

            var advancedOptionsTooltip = new ToolTip();
            advancedOptionsTooltip.SetToolTip(helpAdvancedOptionsButton, "Advanced settings that let you take total control over Highlight Hunter. Click additional help.");

            var licenseTooltip = new ToolTip();
            licenseTooltip.SetToolTip(helpLicenseButton, "Upgrade to Highlight Hunter Pro to enjoy several professional-level features. Click for additional help.");
        }
Esempio n. 2
0
        public TFActivation()
        {
            InitializeComponent();

            DesignLanguage.ApplyCustomFont(this.Controls);

            #region Borderless window

            borderlessWindow = new BorderlessWindow(this, false, false);
            borderlessWindow.IsResizable = false;
            borderlessWindow.SendNCWinMessage += SendNCWinMessage;
            this.MaximizedBounds = this.DisplayRectangle;

            #endregion Borderless window
        }
Esempio n. 3
0
        public MainForm()
        {
            InitializeComponent();

            #region Make sure we aren't running a Test config

            #if TEST
            MessageBox.Show("Run under either DEBUG or RELEASE!");
            Application.Exit();
            #endif

            #endregion Make sure we aren't running a Test config

            //this.SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.DoubleBuffer | ControlStyles.UserPaint | ControlStyles.ResizeRedraw, true);

            Logger.Info("App version: " + MainModel.ApplicationVersion);
            MainModel.Initialize(); // put here so we can start logging everything

            #region Borderless window

            borderlessWindow = new BorderlessWindow(this, true, true);
            borderlessWindow.SendNCWinMessage += SendNCWinMessage;
            this.MaximizedBounds = Screen.GetWorkingArea(this);

            #endregion Borderless window

            InitializeTutorialEscapeHatch();

            selectInputVideosControl = new SelectInputVideosControl();
            selectInputVideosControl.ScanStarted += selectInputVideosControl_ScanStarted;
            selectInputVideosControl.TutorialProgressUpdated += TutorialProgressUpdated;
            selectInputVideosControl.Dock = DockStyle.Fill;
            mainPanel.Controls.Add(selectInputVideosControl);

            scanControl = new ScanControl();
            scanControl.ScanCompletedWithHighlights += scanControl_ScanCompletedWithHighlights;
            scanControl.ScanCancelled += new EventHandler(scanControl_ScanCancelled);
            scanControl.windows7ProgressBar = win7ProgressBar;
            scanControl.Dock = DockStyle.Fill;
            mainPanel.Controls.Add(scanControl);

            reviewVideosControl = new ReviewVideosControl();
            reviewVideosControl.DisplayActivationOptions += reviewVideosControl_DisplayActivationOptions;
            reviewVideosControl.HighlightDetailsOpened += reviewVideosControl_HighlightDetailsOpened;
            reviewVideosControl.HighlightDetailsClosed += reviewVideosControl_HighlightDetailsClosed;
            reviewVideosControl.RescanRequested += reviewVideosControl_RescanRequested;
            reviewVideosControl.StartOverRequested += reviewVideosControl_StartOverRequested;
            reviewVideosControl.TutorialProgressUpdated += TutorialProgressUpdated;
            reviewVideosControl.Dock = DockStyle.Fill;
            mainPanel.Controls.Add(reviewVideosControl);

            SwitchToStep(Steps.SelectVideos);

            DesignLanguage.ApplyCustomFont(this.Controls);

            AnalyticsHelper.OptedIn = true; // everyone always opts in now

            #region track app load analytics

            AnalyticsHelper.FireEvent("Load", null);
            AnalyticsHelper.FireEvent("Load - OS - " + AnalyticsHelper.GetFriendlyOsVersion(), null);

            if (Settings.Default.HasAppLoadedYet == false)
            {
                Settings.Default.HasAppLoadedYet = true;
                Settings.Default.Save();
                AnalyticsHelper.FireEvent("First load", null); // this doesn't need to be conditional because analytics are always on by default
            }

            Settings.Default.TotalLoads += 1;
            Settings.Default.Save();

            AnalyticsHelper.FireEvent("Total loads - " + Settings.Default.TotalLoads);

            #endregion track app load analytics

            #region Initialize DRM Protection

            Protection.Initialize();
            UpdateUIwithLicenseStatus();

            #endregion Initialize DRM Protection
        }
        public HighlightDetailsForm()
        {
            InitializeComponent();

            //3. Ignore a windows erase message to reduce flicker. (http://social.microsoft.com/Forums/en-US/Offtopic/thread/fa0d5277-eb83-4e3e-a2d4-bb00270594a9/)
            // doesn't seem to help
            SetStyle(ControlStyles.AllPaintingInWmPaint, true);

            DesignLanguage.ApplyCustomFont(Controls);

            _borderlessWindow = new BorderlessWindow(this, true, true);
            _borderlessWindow.SendNCWinMessage += SendNCWinMessage;
            MaximizedBounds = Screen.GetWorkingArea(this);

            titleTextBox.Text = "";
        }