public ExportToNodeXLGraphGalleryDialog
(
DialogMode mode,
Microsoft.Office.Interop.Excel.Workbook workbook,
NodeXLControl nodeXLControl
)
{
Debug.Assert(workbook != null);
Debug.Assert(nodeXLControl != null || mode == DialogMode.EditOnly);
m_eMode = mode;
m_oWorkbook = workbook;
m_oNodeXLControl = nodeXLControl;
m_oExportToNodeXLGraphGalleryUserSettings =
new ExportToNodeXLGraphGalleryUserSettings();
m_oPasswordUserSettings = new PasswordUserSettings();
InitializeComponent();
if (m_eMode == DialogMode.EditOnly)
{
InitializeForEditOnly();
}
lnkNodeXLGraphGallery.Tag = ProjectInformation.NodeXLGraphGalleryUrl;
usrExportedFilesDescription.Workbook = workbook;
lnkCreateAccount.Tag =
ProjectInformation.NodeXLGraphGalleryCreateAccountUrl;
// Instantiate an object that saves and retrieves the position of
// this dialog. Note that the object automatically saves the settings
// when the form closes.
m_oExportToNodeXLGraphGalleryDialogUserSettings =
new ExportToNodeXLGraphGalleryDialogUserSettings(this);
DoDataExchange(false);
AssertValid();
}