/*
         * /// <summary>
         * /// Kills all modules
         * /// </summary>
         * public void StopModules()
         * {
         *      lock (oLock)
         *      {
         *
         *      }
         * }
         */

        /// <summary>
        /// Waits untill a module becomes ready
        /// </summary>
        /// <param name="mc">The IModuleClientTcp object which contains the information about the module to wait for</param>
        private void WaitModuleReady(IModuleClientTcp mc)
        {
            Parent.Log.WriteLine(6, "Waiting for '" + mc.Name + "' to be ready.");
            do
            {
                mc.WaitReady(500);
            } while (parent.IsRunning && !mc.Ready);
            Parent.Log.WriteLine(6, "IModuleClientTcp '" + mc.Name + "' is ready.");
        }