Exemplo n.º 1
0
        private void MyOnClosing(object o, System.ComponentModel.CancelEventArgs e)
        {
            if (this.WindowState != FormWindowState.Minimized)
            {
                m_config.SetValue("maximised", (this.WindowState == FormWindowState.Minimized).ToString());
                m_config.SetValue("xpos", this.Location.X.ToString());
                m_config.SetValue("ypos", this.Location.Y.ToString());
                m_config.SetValue("width", this.Size.Width.ToString());
                m_config.SetValue("height", this.Size.Height.ToString());
            }

            m_config.SetValue("treeviewsplitterdistance", FilePaneSplitContainer.SplitterDistance.ToString());

            string treeStateFilename = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), @"YellowDroid\Gaze\tree.txt");

            m_treeState.SaveState(DrivesTreeView, treeStateFilename);

            m_windowManager.ClosingGalleryWindow(this);
        }