public static AdvancedBackupPage CreateInstance() { if (m_instance == null) { m_instance = new AdvancedBackupPage(); } return m_instance; }
public BackupAndRestoreWidget() { InitializeComponent(); m_backupAndRestoreHomePageOne = new BackupAndRestoreHomePageOne(); m_backupAndRestoreHomePageTwo = new BackupAndRestoreHomePageTwo(); m_advancedBackupPage = AdvancedBackupPage.CreateInstance(); m_advanceRestorePage = AdvancedRestorePage.CreateInstance(); m_mainWidget.Navigate(m_backupAndRestoreHomePageOne); m_backupAndRestoreHomePageTwo.NavToBackupEventHandler += NaviToBackupView; m_backupAndRestoreHomePageTwo.NavToRestoreEventHandler += NaviToRestoreView; }