예제 #1
0
        static void Main()
        {
            Directory.CreateDirectory(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData) + "/My Spy/Temp/");

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            if (File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData) + "/My Spy/Temp/Remind.dat"))
            {
                NoteForm ntform = new NoteForm();
                ntform.Path       = File.ReadAllText(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData) + "/My Spy/Temp/Remind.dat");
                ntform.remindshow = true;
                File.Delete(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData) + "/My Spy/Temp/Remind.dat");
                Application.Run(ntform);
            }
            else
            {
                Application.Run(new Form1());
            }
        }