Ejemplo n.º 1
0
    private bool Next()
    {
        bool success = FillParameterForm.CheckForUniqueParameterNames();

        if (success)
        {
            success = FillParameterForm.FillMissingParameters();
        }

        if (success)
        {
            FireInputHandlingBeginEvent();
            nextButton.Enabled = false;

            bool startImport = ImportNewTraceFiles();

            if (startImport)
            {
                _lastImportedFiles.Clear();
                success = StartImport();
            }

            if (success)
            {
                _databaseOperation.SetForceRecalculateTotalRows(true);
                success = FireShowDataViewEvent(startImport);
            }

            nextButton.Enabled = true;
            FireInputHandlingEndEvent();
        }

        return(success);
    }
Ejemplo n.º 2
0
    private void StartRecordingMode()
    {
        bool success = FillParameterForm.CheckForUniqueParameterNames();

        if (success)
        {
            success = FillParameterForm.FillMissingParameters();
        }

        if (success)
        {
            TraceRecordingForm form = new TraceRecordingForm();
            form.Initialize(_databaseOperation, _recordingMode);
            form.ShowDialog();

            success = form.GetSuccess();

            if (success)
            {
                inputSourceUserControl1.SetImportNew(true);
                _databaseOperation.SetForceRecalculateTotalRows(true);
                InputSourceUserControl1_ShowDataViewEvent(true, false, false, false);
            }
        }
    }
Ejemplo n.º 3
0
    private void MainForm_CustomColumnsChangedEvent()
    {
        if (WindowState == FormWindowState.Minimized)
        {
            WindowState = FormWindowState.Normal;
        }

        bool success = FillParameterForm.CheckForUniqueParameterNames();

        if (success)
        {
            success = FillParameterForm.FillMissingParameters();
        }

        if (success)
        {
            SetForegroundWindow((int)Handle);

            dataViewUserControl1.HandleColumns(false);
            HandleDataViewerAfterCustomColumnsChange();
        }
    }
    private void Next()
    {
        FireInputHandlingBeginEvent();
        nextButton.Enabled = false;

        bool startImport = ImportNewSessions();

        if (startImport)
        {
            bool success = IsCustomColumnsWindowClosed(true);

            if (success)
            {
                success = FillParameterForm.CheckForUniqueParameterNames();
            }

            if (success)
            {
                success = FillParameterForm.FillMissingParameters();
            }

            if (success)
            {
                _lastImportedSessions.Clear();
                StartImport();

                DisableColumnsNotInImportTables();

                _databaseOperation.SetForceRecalculateTotalRows(true);
                FireShowDataViewEvent(true, false, false);
            }
        }

        nextButton.Enabled = true;
        FireInputHandlingEndEvent();
    }