Ejemplo n.º 1
0
 protected void OnSaveFile(SaveFileEventArgs e)
 {
     if (OnSaveFileHandler != null)
         OnSaveFileHandler(this, e);
 }
Ejemplo n.º 2
0
        private void App_OnSaveFile(object sender, SaveFileEventArgs e)
        {
            Debug.Assert(tcFiles.TabPages.ContainsKey(e.FileName), "Can't reconcile saved file: " + e.FileName);

            if (tcFiles.TabPages.ContainsKey(e.FileName))
            {
                tcFiles.TabPages[e.FileName].Text = e.Name;
            }

            TestSuiteFileEntry fileEntry = tcFiles.TabPages[e.FileName].Tag as TestSuiteFileEntry;

            Debug.Assert(null != fileEntry, "Can't reconcile fileEntry for saved file: " + e.FileName);

            if (fileEntry != null)
                fileEntry.Changed = false;

            DetermineSaveMenuState();
        }