コード例 #1
0
        public MainClass()
        {
            InitializeComponent();

            path = new string[100];
            GetProcesses();
            ConformXmlFile();
            Window_kill_list = new Kill_List("Kill List");
            Window_Except    = new Kill_List("Except Window");
        }
コード例 #2
0
        public bool Check_Process_in_ExceptList(string toCheck, Kill_List Except_Obj)
        {
            //SelectedProcess
            //Kill_List Except_Obj = new Kill_List("Except_List");
            //Except_Obj.ReadXmlFile("Kill List.xml");


            //Except_Obj.Show();
            string pNames = Except_Obj.txtbox.Text;
            bool   found  = false;

            string[] SingleProcessName = ConvertStringToStringArray(pNames);
            foreach (string str in SingleProcessName)
            {
                //found = (toCheck == str ? true : false);
                //System.Windows.Forms.MessageBox.Show(str);
                if (toCheck == str)
                {
                    found = true;
                    break;
                }
            }
            return(found);
        }
コード例 #3
0
        public MainClass(object j)
        {
            Kill_List kl = new Kill_List();

            kl.ReadXmlFile("Kill List.xml");
        }