Beispiel #1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

              //  Application.Run(new Form1());
            if (GetInfo.logstart_set)
            {
                //Form1.WriteLogo("程序关闭", DateTime.Now, "Stop OK ", "");
                GetInfo newcls = new GetInfo();

                newcls.writeLog("程序启动", DateTime.Now, "Start OK ", "");
            }
            Application.Run(new main());
        }
Beispiel #2
0
        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            if (GetInfo.logstop_set)
            {
               
                GetInfo newcls = new GetInfo();
                newcls.writeLog("程序关闭", DateTime.Now, "Stop OK ", "");
            }


            base.Dispose(disposing);
        }