Пример #1
0
        /// <summary>
        /// Initialize the game instance selection window
        /// </summary>
        /// <param name="centerScreen">true to center the window on the screen, false to center it on the parent</param>
        public ManageKspInstances(bool centerScreen)
        {
            _manager = Main.Instance.Manager;
            InitializeComponent();

            if (centerScreen)
            {
                StartPosition = FormStartPosition.CenterScreen;
            }

            if (!_manager.Instances.Any())
            {
                _manager.FindAndRegisterDefaultInstance();
            }

            // Set the renderer for the AddNewMenu
            if (Platform.IsMono)
            {
                this.AddNewMenu.Renderer = new FlatToolStripRenderer();
                this.InstanceListContextMenuStrip.Renderer = new FlatToolStripRenderer();
            }

            UpdateInstancesList();
            UpdateButtonState();
        }
Пример #2
0
        public ChooseKSPInstance()
        {
            _manager = Main.Instance.Manager;
            InitializeComponent();

            StartPosition = FormStartPosition.CenterScreen;

            if (!_manager.Instances.Any())
            {
                _manager.FindAndRegisterDefaultInstance();
            }

            UpdateInstancesList();
            UpdateButtonState();
        }
Пример #3
0
        public ChooseKSPInstance()
        {
            _manager = Main.Instance.Manager;
            InitializeComponent();

            StartPosition = FormStartPosition.CenterScreen;

            if (!_manager.Instances.Any())
            {
                _manager.FindAndRegisterDefaultInstance();
            }

            UpdateInstancesList();
            UpdateButtonState();
        }
Пример #4
0
        public ChooseKSPInstance()
        {
            manager = Main.Instance.Manager;
            InitializeComponent();

            StartPosition = FormStartPosition.CenterScreen;

            browseKspFolder = new FolderBrowserDialog();

            if (!manager.Instances.Any())
            {
                manager.FindAndRegisterDefaultInstance();
            }

            UpdateInstancesList();

            SetButtonsEnabled(false);
        }
Пример #5
0
        public ChooseKSPInstance()
        {
            manager = Main.Instance.Manager;
            InitializeComponent();

            StartPosition = FormStartPosition.CenterScreen;

            m_BrowseKSPFolder = new FolderBrowserDialog();

            if (!manager.Instances.Any())
            {
                manager.FindAndRegisterDefaultInstance();
            }

            UpdateInstancesList();

            SetButtonsEnabled(false);
        }
Пример #6
0
        public ChooseKSPInstance()
        {
            InitializeComponent();
            StartPosition = FormStartPosition.CenterScreen;

            m_BrowseKSPFolder = new FolderBrowserDialog();

            if (!KSPManager.Instances.Any())
            {
                KSPManager.FindAndRegisterDefaultInstance();
            }

            UpdateInstancesList();

            SelectButton.Enabled         = false;
            RenameButton.Enabled         = false;
            SetAsDefaultCheckbox.Enabled = false;
        }