Ejemplo n.º 1
0
        void FrmMainFormClosed(object sender, FormClosedEventArgs e)
        {
            // DockContent has no close event when main form closes
            if (m_Image != null)
            {
                m_Image.Close2nd();
            }
            //Debug.WriteLine("main FormClosed:");
            int le = this.Left;
            int to = this.Top;

            Multi.MainSave(le, to);
            Settings.Default.MainW = this.Width;
            Settings.Default.MainH = this.Height;
            string recentPath = "";

            recentItem1.StringList(ref recentPath);
            Settings.Default.RecentImgs = recentPath;
            Settings.Default.Save( );                              // last program line for debugger
        }