Smrf.NodeXL.ExcelTemplate.DynamicFilterDialog.DynamicFilterDialog C# (CSharp) Method

DynamicFilterDialog() public method

Initializes a new instance of the class with a workbook.
public DynamicFilterDialog ( Microsoft workbook ) : System
workbook Microsoft /// Workbook containing the graph contents. ///
return System
    public DynamicFilterDialog
    (
        Microsoft.Office.Interop.Excel.Workbook workbook
    )
    : this()
    {
        Debug.Assert(workbook != null);

        // Instantiate an object that saves and retrieves the user settings for
        // this dialog.  Note that the object automatically saves the settings
        // when the form closes.

        m_oDynamicFilterDialogUserSettings =
            new DynamicFilterDialogUserSettings(this);

        m_oWorkbook = workbook;

        m_oExcelCalculationRestorer =
            new ExcelCalculationRestorer(workbook.Application);

        m_oExcelCalculationRestorer.TimerIntervalMs =
            CalculationRestorerTimerIntervalMs;

        m_bHandleControlEvents = false;

        m_oChangeEventDelayTimer = new Timer();
        m_oChangeEventDelayTimer.Interval = ChangeEventTimerIntervalMs;

        m_oChangeEventDelayTimer.Tick += new EventHandler(
            this.m_oChangeEventDelayTimer_Tick);

        m_oDynamicFilterSettings = null;
        m_oEdgeDynamicFilterColumnData = null;
        m_oVertexDynamicFilterColumnData = null;

        DynamicFiltersUserSettings oDynamicFiltersUserSettings =
            new DynamicFiltersUserSettings();

        chkDoNotFilterNonNumericCells.Checked = 
            !oDynamicFiltersUserSettings.FilterNonNumericCells;

        nudFilteredAlpha.Minimum =
            (Decimal)AlphaConverter.MinimumAlphaWorkbook;

        nudFilteredAlpha.Maximum =
            (Decimal)AlphaConverter.MaximumAlphaWorkbook;

        nudFilteredAlpha.Value = (Decimal)
            oDynamicFiltersUserSettings.FilteredAlpha;

        AssertValid();
    }

Same methods

DynamicFilterDialog::DynamicFilterDialog ( ) : System