/// <summary> /// Notification when part's imports have been satisfied</summary> void IPartImportsSatisfiedNotification.OnImportsSatisfied() { if (m_mainWindow == null && m_mainForm != null) { m_mainWindow = new MainFormAdapter(m_mainForm); } if (m_mainWindow == null) throw new InvalidOperationException("Can't get main window"); }
void IInitializable.Initialize() { if (m_mainWindow == null && m_mainForm != null) { m_mainWindow = new MainFormAdapter(m_mainForm); } if (m_mainWindow == null) throw new InvalidOperationException("Can't get main window"); m_mainWindow.Loading += mainWindow_Loaded; }
/// <summary> /// Notification when part's imports have been satisfied</summary> void IPartImportsSatisfiedNotification.OnImportsSatisfied() { if (m_mainWindow == null && m_mainForm != null) { m_mainWindow = new MainFormAdapter(m_mainForm); } if (m_mainWindow == null) { throw new InvalidOperationException("Can't get main window"); } }
void IInitializable.Initialize() { if (m_mainWindow == null && m_mainForm != null) { m_mainWindow = new MainFormAdapter(m_mainForm); } if (m_mainWindow == null) { throw new InvalidOperationException("Can't get main window"); } m_mainWindow.Loading += mainWindow_Loaded; }
/// <summary> /// Notification when part's imports have been satisfied</summary> void IPartImportsSatisfiedNotification.OnImportsSatisfied() { if (m_mainWindow == null && m_mainForm != null) { m_mainWindow = new MainFormAdapter(m_mainForm); } if (m_mainWindow == null) { throw new InvalidOperationException("Can't get main window"); } m_mainWindow.Loading += mainWindow_Loaded; m_mainWindow.Closed += mainWindow_Closed; string settingsDirectory = Path.GetDirectoryName(m_settingsPath); if (!Directory.Exists(settingsDirectory)) { Directory.CreateDirectory(settingsDirectory); } }