www.pudn.com > WorkflowDesigner.rar > Program.cs, change:2007-11-16,size:1307b


using System; 
using System.Collections.Generic; 
using System.Windows.Forms; 
 
namespace WorkflowDesigner 
{ 
    static class Program 
    { 
        /// <summary> 
        /// 应用程序的主入口点。 
        /// </summary> 
        [STAThread] 
        static void Main() 
        { 
            Application.EnableVisualStyles(); 
            Application.SetCompatibleTextRenderingDefault(false); 
            Application.Run(new MainForm()); 
        } 
        /// <summary> 
        /// 得到主窗体 
        /// </summary> 
        /// <returns></returns> 
        static public MainForm GetMainForm() 
        { 
            if (_mainForm == null) 
            { 
                _mainForm = new MainForm(); 
            } 
            return _mainForm; 
        } 
        //表示维护入口0为不与数据库相关 1为与数据库相关 
        static public int InputFlag = 0; 
        /// <summary> 
        /// 主窗体 
        /// </summary> 
        static private MainForm _mainForm; 
 
 
        static private WorkflowControl _workflowControl = new WorkflowControl(); 
 
        public static WorkflowControl WorkflowControl 
        { 
            get { return Program._workflowControl; } 
            set { Program._workflowControl = value; } 
        } 
    } 
}