コード例 #1
0
        /* ########################## Events ########################### */


        private void FormPuppetMaster_Load(object sender, EventArgs e)
        {
            TcpChannel channel = new TcpChannel(Util.PUPPET_MASTER_PORT);

            ChannelServices.RegisterChannel(channel, false);
            manager = new ProcessesManager(this);
            IEnumerable <string> files = Directory.GetFiles(
                ProcessesManager.CONFIG_FILES_DIRECTORY);

            foreach (string file in files)
            {
                treeViewConfigFiles.Nodes.Add(Path.GetFileName(file));
            }
            files = Directory.GetFiles(
                ProcessesManager.SCRIPT_FILES_DIRECTORY);
            foreach (string file in files)
            {
                treeViewScriptFiles.Nodes.Add(Path.GetFileName(file));
            }
            ReloadLogFiles();
        }
コード例 #2
0
 /* ########################## Events ########################### */
 private void FormPuppetMaster_Load(object sender, EventArgs e)
 {
     TcpChannel channel = new TcpChannel(Util.PUPPET_MASTER_PORT);
     ChannelServices.RegisterChannel(channel, false);
     manager = new ProcessesManager(this);
     IEnumerable<string> files = Directory.GetFiles(
         ProcessesManager.CONFIG_FILES_DIRECTORY);
     foreach(string file in files)
         treeViewConfigFiles.Nodes.Add(Path.GetFileName(file));
     files = Directory.GetFiles(
         ProcessesManager.SCRIPT_FILES_DIRECTORY);
     foreach (string file in files)
         treeViewScriptFiles.Nodes.Add(Path.GetFileName(file));
     ReloadLogFiles();
 }