Esempio n. 1
0
        private void btnOK_Click(object sender, EventArgs e)
        {
            string strError = "";

            if (m_fEditControl.bIsValid(ref strError))
            {
                m_fEditControl.GetFilePath(ref m_strOutputPath);
                m_strNotes = this.c_tbNotes.Text;
                if (m_fOpenEditControl != null)
                {
                    m_fOpenEditControl.InitialDirectory = m_fEditControl.InitialDirectory;
                    m_fOpenEditControl.FileName         = m_fEditControl.FileName;
                    m_fOpenEditControl.Serialize(Path.Combine(m_strConfigDir, "viewhistory.cfg"));
                }
                this.DialogResult = DialogResult.OK;
                Close();
            }
            else
            {
                this.DialogResult = DialogResult.None;
            }
        }
Esempio n. 2
0
 private void butOK_Click(object sender, EventArgs e)
 {
     m_fEditControl.Serialize(Path.Combine(m_strConfigDir, "viewhistory.cfg"));
 }