Пример #1
0
        internal override void Execute()
        {
            MGData firstMgData = MGDataCollection.Instance.getMGData(0);
            Task   MainPrg     = firstMgData.getMainProg(0);

            while (MainPrg != null)
            {
                MainPrg.handleTaskSuffix(false);

                MainPrg = firstMgData.getNextMainProg(MainPrg.getCtlIdx());
            }
        }
Пример #2
0
        /// <summary>
        /// Get .Net assembly file name specified by url in local file system
        /// </summary>
        /// <param name="url"></param>
        /// <returns></returns>
        private String GetDNAssemblyFile(String url)
        {
            // Since .NET assemblies are loaded dynamically in ReflectionServices, it is difficult to get the task that is
            // trying to load the assembly. However, getCurrMGData().getFirstTask() serves our purpose as the task is used
            // only to get commands processor
            TaskBase task = MGDataCollection.Instance.getCurrMGData().getFirstTask();

            // At the time of loading .net assembly for initializing the .net objects in main program, getFirstTask () returns
            // null if the main program does not have MDI frame. Then use main program to get the commands processor.
            if (task == null)
            {
                MGData mgd = MGDataCollection.Instance.getMGData(0);
                task = mgd.getMainProg(0);
            }

            return(GetLocalFileName(url, task));
        }