Exemplo n.º 1
0
        private void LispIDEForm_FormClosing(object sender, FormClosingEventArgs e)
        {
            Debug.WriteLineIf(IsFirstInstance, "First Instance Form Closing", "Debug");
            Debug.WriteLineIf(!IsFirstInstance, "Second Instance Form Closing", "Debug");

            ConfigurationManager.SaveWindowState(this);
            SaveOpenDocuments();
            ConfigurationManager.Save();
        }
Exemplo n.º 2
0
        protected static void OnFileSaved(string file, string name, LispEditor editor)
        {
            ConfigurationManager.RecentFiles.AddRecentFile(file);
            ConfigurationManager.Save();

            if (FileSaved != null)
            {
                FileSaved(null, new FileCommandEventArgs(file, name, editor));
            }
        }