private void props_etc_01_Unchecked(object sender, RoutedEventArgs e) { ModifyRegistry __reg = new ModifyRegistry(util.LoadProjectResource("REG_MAIN_RUN", "COMMONRES", "").ToString()); __reg.DeleteValue(RegKind.LocalMachine, "CdrAgent"); _runstart = false; this.SaveProps(); }
public void InitializeProperties() { _reg = new ModifyRegistry(util.LoadProjectResource("REG_SUBKEY_CDR", "COMMONRES", "").ToString()); }
private void props_etc_01_Checked(object sender, RoutedEventArgs e) { ModifyRegistry __reg = new ModifyRegistry(util.LoadProjectResource("REG_MAIN_RUN", "COMMONRES", "").ToString()); string __curDirectory = Directory.GetCurrentDirectory(); __reg.SetValue(RegKind.LocalMachine, "CdrAgent", string.Format("{0}\\CdrAgent.exe", __curDirectory)); _runstart = true; this.SaveProps(); }
private void LoadRegistry(object state) { _reg = new ModifyRegistry(util.LoadProjectResource("REG_SUBKEY_CALLRECORDER", "COMMONRES", "").ToString()); byte[] __bytes = (byte[])_reg.GetValue(RegKind.LocalMachine, "CR"); _option = (CRAgentOption)util.ByteArrayToObject(__bytes); Thread.Sleep(1000); ThreadPool.QueueUserWorkItem(new WaitCallback(LoadRegistry)); }