Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
 public void InitializeProperties()
 {
     _reg = new ModifyRegistry(util.LoadProjectResource("REG_SUBKEY_CDR", "COMMONRES", "").ToString());
 }
Ejemplo n.º 3
0
        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();
        }
Ejemplo n.º 4
0
        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));
        }