Example #1
0
 /// <summary>
 /// 자료 파일을 불러오는 창을 연다.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void registerFile_ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     frmLoadData frmL = new frmLoadData();
     frmL.MdiParent = this;
     frmL.Show();
 }
Example #2
0
        /// <summary>
        /// 파일을 드래그하면 자료입력 창을 실행한다
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void frmMain_DragDrop(object sender, DragEventArgs e)
        {
            if (e.Data.GetDataPresent(DataFormats.FileDrop))
            {
                string[] files = (string[])e.Data.GetData(DataFormats.FileDrop);
                foreach (string filePath in files)
                {
                    Console.WriteLine(filePath);

                    frmLoadData frmL = new frmLoadData(filePath);
                    frmL.MdiParent = this;
                    frmL.Show();
                }
            }
        }