Example #1
0
        /// <summary>
        ///     Is run when when forms visibility change has finished in method SetVisibilityStatus(). Purpose is to also set
        ///     the min forms visibility.
        /// </summary>
        private void FormHiding_WorkFinished(object sender, EventArgs args)
        {
            if (!_whenFinishedComplementaryWork)
            {
                return;
            }
            switch (_formMinVisibility)
            {
            case FormVisibility.Showing:
                _viewMin.Show();
                break;

            case FormVisibility.Hiding:
                _viewMin.Hide();
                break;

            case FormVisibility.ValueInSettings:
                switch (_settings.AppearanceFadeChoices)
                {
                case "Fade out and minimize":
                case "Minimize":
                    _viewMin.Show();
                    break;

                case "Fade out and close":
                case "Close":
                    _viewMin.Hide();
                    break;
                }

                break;

            default:
                throw new ArgumentOutOfRangeException(nameof(sender),
                                                      Resources.PresenterMain_FormHiding_WorkFinished_An_error_occured_while_setting_the_min_forms_visibility_);
            }
        }
Example #2
0
 private void OnMouseEnterLabelTitleTop(object sender, EventArgs args)
 {
     _viewMain.Show();
     _viewMain.RefreshAll = true;
     _viewMin.Hide();
 }