public void CheckStatus()
{
RegistryKey x10RegKey = Registry.ClassesRoot.OpenSubKey(_x10);
if (x10RegKey == null)
{
_isOpener = false;
_isEditor = false;
_currentOpener = string.Empty;
_currentEditor = string.Empty;
return;
}
string keyValue = x10RegKey.GetValue(string.Empty).ToString();
RegistryKey editorKey = GetAssociationKey(keyValue, @"\shell\edit\command");
Refresh(editorKey, ref _isEditor, ref _currentEditor);
RegistryKey openerKey = GetAssociationKey(keyValue, @"\shell\open\command");
Refresh(openerKey, ref _isOpener, ref _currentOpener);
}