Beispiel #1
0
        private void saveToolStripButton_Click(object sender, EventArgs e)
        {
            if (String.IsNullOrEmpty(_CurrentFullFileName))
            {
                return;
            }

            TreeViewEngine.SaveMenuToFile(_CurrentFullFileName, _RootMenu);
            m_Saved = true;
            fwkMessageView_Warning.Show("Menu sussefully saved");
        }
Beispiel #2
0
 private void frmMain_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (!m_Saved)
     {
         if (fwkMessageView_Warning.Show("Save current menu ?") == DialogResult.OK)
         {
             TreeViewEngine.SaveMenuToFile(_CurrentFullFileName, _RootMenu);
             m_Saved = true;
         }
     }
 }