コード例 #1
0
        public static void removeEntries(string id)
        {
            ControlPanel.Repository.SystemProcessThreadRepository sptr = new ControlPanel.Repository.SystemProcessThreadRepository();
            var  thread = sptr.GetSystemProcessThread(Convert.ToInt16(id));
            bool result = sptr.DeleteSystemProcessThread(Convert.ToInt16(id));

            if (result)
            {
                var threadsofprocess = sptr.GetSystemProcessThreadBySystemProcessId(thread.SystemProcessId);

                if (threadsofprocess == null)
                {
                    ControlPanel.Repository.SystemProcessRepository spr = new Repository.SystemProcessRepository();
                    spr.DeleteSystemProcess(thread.SystemProcessId);
                }
            }
        }
コード例 #2
0
 public static void removeEntries(string id)
 {
     ControlPanel.Repository.SystemProcessThreadRepository sptr = new ControlPanel.Repository.SystemProcessThreadRepository();
     bool result =  sptr.DeleteSystemProcessThread(Convert.ToInt16(id));
 }
コード例 #3
0
 public static void removeEntries(string id)
 {
     ControlPanel.Repository.SystemProcessThreadRepository sptr = new ControlPanel.Repository.SystemProcessThreadRepository();
     bool result = sptr.DeleteSystemProcessThread(Convert.ToInt16(id));
 }
コード例 #4
0
        public static void removeEntries(string id)
        {
            ControlPanel.Repository.SystemProcessThreadRepository sptr = new ControlPanel.Repository.SystemProcessThreadRepository();
            var thread = sptr.GetSystemProcessThread(Convert.ToInt16(id));
            bool result =  sptr.DeleteSystemProcessThread(Convert.ToInt16(id));
            if (result)
            {
                var threadsofprocess = sptr.GetSystemProcessThreadBySystemProcessId(thread.SystemProcessId);

                if (threadsofprocess == null)
                {
                    ControlPanel.Repository.SystemProcessRepository spr = new Repository.SystemProcessRepository();
                    spr.DeleteSystemProcess(thread.SystemProcessId);
                }

            }
        }