C# Класс Smrf.NodeXL.ExcelTemplate.AutomateTasksDialog

Edits a AutomateTasksUserSettings object and optionally runs the tasks specified in the object.
Unlike other dialogs in this application, you do not pass a user settings object to the constructor. That's because when automating a folder, this class must update the user settings before opening other workbooks, so those other workbooks will have access to the updated settings.

The Form.ShowDialog() return value does indicate whether the settings were updated: it returns DialogResult.OK if they were edited, or DialogResult.Cancel if they were not.

Наследование: ExcelTemplateForm
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
m_bIgnoreItemCheckEvents System.Boolean
m_eMode DialogMode
m_oAutomateTasksDialogUserSettings AutomateTasksDialogUserSettings
m_oAutomateTasksUserSettings AutomateTasksUserSettings
m_oNodeXLControl Smrf.NodeXL.Visualization.Wpf.NodeXLControl
m_oThisWorkbook ThisWorkbook

Открытые методы

Метод Описание
AssertValid ( ) : void
AutomateTasksDialog ( DialogMode mode, ThisWorkbook thisWorkbook, NodeXLControl nodeXLControl ) : System

Initializes a new instance of the AutomateTasksDialog class.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Clean up any resources being used.

DoDataExchange ( System.Boolean bFromControls ) : System.Boolean
EditFolderToSaveWorkbookTo ( ) : void
EnableControls ( ) : void
GetTasksToRun ( ) : AutomationTasks
ItemToAutomationTask ( Object oCheckedListBoxItem ) : AutomationTasks
PopulateTasksToRun ( ) : void
SetTasksToRun ( AutomationTasks eTasksToRun ) : void

Приватные методы

Метод Описание
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

OnCheckOrUncheckAll ( object sender, System e ) : void
OnEventThatRequiresControlEnabling ( object sender, EventArgs e ) : void
btnOK_Click ( object sender, System e ) : void
btnOptions_Click ( object sender, EventArgs e ) : void
clbTasksToRun_ItemCheck ( object sender, System.Windows.Forms.ItemCheckEventArgs e ) : void

Описание методов

AssertValid() публичный Метод

public AssertValid ( ) : void
Результат void

AutomateTasksDialog() публичный Метод

Initializes a new instance of the AutomateTasksDialog class.
public AutomateTasksDialog ( DialogMode mode, ThisWorkbook thisWorkbook, NodeXLControl nodeXLControl ) : System
mode DialogMode /// Indicates the mode in which the dialog is being used. ///
thisWorkbook ThisWorkbook /// Workbook containing the graph contents. ///
nodeXLControl Smrf.NodeXL.Visualization.Wpf.NodeXLControl /// The NodeXLControl object. This can be null if /// is . ///
Результат System

Dispose() защищенный Метод

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Результат void

DoDataExchange() защищенный Метод

protected DoDataExchange ( System.Boolean bFromControls ) : System.Boolean
bFromControls System.Boolean
Результат System.Boolean

EditFolderToSaveWorkbookTo() защищенный Метод

protected EditFolderToSaveWorkbookTo ( ) : void
Результат void

EnableControls() защищенный Метод

protected EnableControls ( ) : void
Результат void

GetTasksToRun() защищенный Метод

protected GetTasksToRun ( ) : AutomationTasks
Результат AutomationTasks

ItemToAutomationTask() защищенный Метод

protected ItemToAutomationTask ( Object oCheckedListBoxItem ) : AutomationTasks
oCheckedListBoxItem Object
Результат AutomationTasks

PopulateTasksToRun() защищенный Метод

protected PopulateTasksToRun ( ) : void
Результат void

SetTasksToRun() защищенный Метод

protected SetTasksToRun ( AutomationTasks eTasksToRun ) : void
eTasksToRun AutomationTasks
Результат void

Описание свойств

m_bIgnoreItemCheckEvents защищенное свойство

protected Boolean,System m_bIgnoreItemCheckEvents
Результат System.Boolean

m_eMode защищенное свойство

protected DialogMode m_eMode
Результат DialogMode

m_oAutomateTasksDialogUserSettings защищенное свойство

protected AutomateTasksDialogUserSettings,Smrf.NodeXL.ExcelTemplate m_oAutomateTasksDialogUserSettings
Результат AutomateTasksDialogUserSettings

m_oAutomateTasksUserSettings защищенное свойство

protected AutomateTasksUserSettings,Smrf.NodeXL.ExcelTemplate m_oAutomateTasksUserSettings
Результат AutomateTasksUserSettings

m_oNodeXLControl защищенное свойство

protected NodeXLControl,Smrf.NodeXL.Visualization.Wpf m_oNodeXLControl
Результат Smrf.NodeXL.Visualization.Wpf.NodeXLControl

m_oThisWorkbook защищенное свойство

protected ThisWorkbook,Smrf.NodeXL.ExcelTemplate m_oThisWorkbook
Результат ThisWorkbook