/// <summary>
        /// 수정할 때 폼 열기
        /// </summary>
        private void fnSelectedOpen()
        {
            Dictionary <string, string> dicSelected = fnSelectedDic();
            EnrollForm EF = new EnrollForm(dicSelected);

            EF.StartPosition = FormStartPosition.CenterParent;


            if (EF.ShowDialog() == DialogResult.Cancel)
            {
            }
        }
Ejemplo n.º 2
0
        private void efnMemo(string p_reportType, string p_reportSeq, string p_memSeq)
        {
            int intScrIndex = dataGridView1.FirstDisplayedScrollingRowIndex;
            int intScrFocus = dataGridView1.CurrentRow.Index;

            EnrollForm ME = new EnrollForm(p_reportType, p_reportSeq, p_memSeq);

            ME.StartPosition = FormStartPosition.CenterParent;
            if (ME.ShowDialog() == DialogResult.OK)
            {
            }
            fnReadDB();
            fnFocus(intScrIndex, intScrFocus);
        }
        /// <summary>
        /// 신규 버튼
        /// </summary>
        private void fnNew()
        {
            DataTable dtt = new DataTable();

            strSQL = @"SELECT CASE WHEN Max(Seq) IS NULL THEN 0 ELSE Max(Seq) END AS 'Seq'
                         FROM Memo";
            dtt    = Network.GetDBTable(strSQL);


            EnrollForm EF = new EnrollForm();

            EF.StartPosition = FormStartPosition.CenterParent;

            if (EF.ShowDialog() == DialogResult.Cancel)
            {
            }
        }