示例#1
0
 public CommonTasks()
 {
     InitializeComponent();
     // Display pages in the frames.
     frmCommonTasksSideFrame.Navigate(CommonTasksSidePanel.getInstance());
     frmCommonTasksMainFrame.Navigate(new CommonTasksSplashPage());
 }
        // Return a static instance of this page, using the singleton pattern.
        public static CommonTasksSidePanel getInstance()
        {
            if (instance == null)
            {
                instance = new CommonTasksSidePanel();
            }

            return(instance);
        }