Пример #1
0
    public BXSSMainWindow()
    {
        _settings = new BXSSSettings();
        _settings.Load();
        _screenshot = new Screenshot(
            KSPUtil.ApplicationRootPath + "PluginData/BXSS/",
            () =>
        {
            _prevUIState = Visible;
            Visible      = false;
            if (_mainUIEnabled)
            {
                RenderingManager.ShowUI(false);
            }
        },
            () =>
        {
            Visible = _prevUIState;
            if (_mainUIEnabled)
            {
                RenderingManager.ShowUI(true);
            }
        });

        _collapsed           = true;
        _mainUIEnabled       = true;
        _autoIntervalEnabled = false;

        _autoIntervalStopwatch = new Stopwatch();

        WindowPosition = _settings.WindowPosition;

        Caption = "B.X.S.S";

        SetupControls();
    }