private void DoWorkEntry(object sender, DoWorkEventArgs e)
{
if (m_dbpath != null)
{
Instance = COMRegistry.Load(m_dbpath);
}
else
{
if (m_keyPath != null)
{
using (RegistryKey key = m_rootKey.OpenSubKey(m_keyPath))
{
Instance = COMRegistry.Load(key);
}
}
else
{
Instance = COMRegistry.Load(m_rootKey);
}
}
}