public SourcePortViewForm(IDataSourceAdapter adapter, AppConfiguration appConfig, ITabView[] tabViews, SourcePortLaunchType type)
        {
            InitializeComponent();

            GameFileViewControl.StyleGrid(dgvSourcePorts);
            dgvSourcePorts.MultiSelect = false;

            m_adapter    = adapter;
            m_appConfig  = appConfig;
            m_tabViews   = tabViews;
            m_launchType = type;

            ResetData();
            dgvSourcePorts.Columns[dgvSourcePorts.Columns.Count - 1].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
        }
        public SourcePortViewForm(IDataSourceAdapter adapter, ITabView[] tabViews, SourcePortLaunchType type)
        {
            InitializeComponent();

            dgvSourcePorts.DefaultCellStyle.NullValue          = "N/A";
            dgvSourcePorts.RowHeadersVisible                   = false;
            dgvSourcePorts.AutoGenerateColumns                 = false;
            dgvSourcePorts.DefaultCellStyle.SelectionBackColor = Color.Gray;

            m_adapter    = adapter;
            m_tabViews   = tabViews;
            m_launchType = type;

            ResetData();
            dgvSourcePorts.Columns[dgvSourcePorts.Columns.Count - 1].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
        }
示例#3
0
        public SourcePortEditForm(IDataSourceAdapter adapter, ITabView[] additionalTabViews, SourcePortLaunchType type)
        {
            InitializeComponent();
            pbInfo.Image = Properties.Resources.bon2b;
            lblInfo.Text = string.Format("These files will automatically be added when this executable{0} is selected.", Environment.NewLine);

            ctrlFiles.Initialize("GameFileID", "FileName");
            ctrlFiles.NewItemNeeded += ctrlFiles_NewItemNeeded;

            m_adapter             = adapter;
            m_additionalFileViews = additionalTabViews;
            m_type = type;

            Text = m_type.ToString("g");

            sourcePortEdit1.ShowOptions(type == SourcePortLaunchType.Utility);

            if (type == SourcePortLaunchType.Utility && tblMain.RowStyles[1].Height > 0)
            {
                grpAdditionalFiles.Visible  = false;
                tblMain.RowStyles[1].Height = 0;
                Height -= grpAdditionalFiles.Height;
            }
        }