private void button_Modify_Click(object sender, EventArgs e) { if (PrjListView.SelectedItems.Count > 0) { string strTemp = PrjListView.FocusedItem.ToString(); VSRData m_cSelectedData = new VSRData(); m_cSelectedData.SetFileName(strTemp); int nSelectIndex = -1; nSelectIndex = PrjListView.FocusedItem.Index; if (nSelectIndex != -1 && strTemp != "") { m_cSelectedData = DataList[nSelectIndex]; AddPrjForm addDlg = new AddPrjForm(m_cSelectedData); addDlg.SendAddResultEvent += new AddPrjForm.SendAddResult(GetAddResult); addDlg.ShowDialog(); DataFileSave(); } } }
private void PrjAddButton_Click(object sender, EventArgs e) { OpenFileDialog ofd = new OpenFileDialog(); ofd.Filter = "PDF 파일 (*.pdf) | *.pdf"; if (ofd.ShowDialog() == System.Windows.Forms.DialogResult.OK) { string path = ofd.FileName; AddPrjForm addDlg = new AddPrjForm(path); addDlg.SendAddResultEvent += new AddPrjForm.SendAddResult(GetAddResult); addDlg.ShowDialog(); } if (m_bAddResult) { DataList.Add(m_AddVSR); DataFileSave(); PrintProjectToListBox(); } }
private void PrjListView_DoubleClick(object sender, EventArgs e) { int nSelectIndex = PrjListView.FocusedItem.Index; if (nSelectIndex != -1) { string strTemp = PrjListView.FocusedItem.ToString(); VSRData m_cSelectedData = new VSRData(); m_cSelectedData.SetFileName(strTemp); if (strTemp != "") { m_cSelectedData = DataList[nSelectIndex]; AddPrjForm addDlg = new AddPrjForm(m_cSelectedData); addDlg.SendAddResultEvent += new AddPrjForm.SendAddResult(GetAddResult); addDlg.ShowDialog(); DataFileSave(); } DataFileLoad(); initAllListViews(); PrintProjectToListBox(); } }