コード例 #1
0
        public EpdDumpForm(DatabaseProxy db)
        {
            InitializeComponent();

            Icon = Properties.Resources.application_icon;

            database = db;
            dumpProgressBar.Maximum = 100;
        }
コード例 #2
0
        public DatabaseCreationForm(DatabaseProxy db)
        {
            InitializeComponent();

            Icon = Properties.Resources.application_icon;

            database = db;

            mergeAllAfterImportRadioButton.Checked = true;

            tempStorageUsageUnitComboBox.SelectedItem = "GB";

            WinFormsControlUtil.MakeDoubleBuffered(humanPgnsDataGridView);
            WinFormsControlUtil.MakeDoubleBuffered(enginePgnsDataGridView);
            WinFormsControlUtil.MakeDoubleBuffered(serverPgnsDataGridView);
            WinFormsControlUtil.MakeDoubleBuffered(importProgressBar);
            WinFormsControlUtil.MakeDoubleBuffered(mergeProgressBar);

            if (database.IsOpen)
            {
                IsAppend = true;
                destinationFolderTextBox.Text          = database.Path;
                destinationFolderTextBox.Enabled       = false;
                databaseFormatComboBox.Enabled         = false;
                mergeNewAfterImportRadioButton.Visible = true;
                Text                 = "Append to database.";
                buildButton.Text     = "Append";
                openCheckBox.Visible = false;
                setDestinationFolderButton.Enabled = false;
            }
            else
            {
                IsAppend = false;
                mergeNewAfterImportRadioButton.Visible = false;
                Text             = "Create database.";
                buildButton.Text = "Create";
            }
        }