public void SetMainWindow(MainWindow wnd) { m_wndMain = wnd; m_wndHanbai = null; m_sExecPath = m_wndMain.m_sExecPath; m_libCmn = m_wndMain.m_libCmn; m_libOdbc = m_wndMain.m_libOdbc; }
public void SetHanbaiWindow(HanbaiWin wnd) { m_wndMain = null; m_wndHanbai = wnd; m_sExecPath = m_wndHanbai.m_sExecPath; m_libCmn = m_wndHanbai.m_libCmn; m_libOdbc = m_wndHanbai.m_libOdbc; }
private void showHanbaiWin() { int max, idx; DataRow dataRow; HanbaiWin hanbaiWin; string sRecs; int nId; if (m_nHanbaiSlctIdx == -1) { MessageBox.Show("データが選択されていません。", "確認", MessageBoxButton.OK); return; } max = m_dt.Rows.Count; sRecs = ""; for (idx = 0; idx < max; idx++) { if (idx != 0) { sRecs = sRecs + ","; } dataRow = m_dt.Rows[idx]; sRecs = sRecs + dataRow["col_id"].ToString(); } dataRow = m_dt.Rows[m_nHanbaiSlctIdx]; nId = m_libCmn.StrToInt(dataRow["col_id"].ToString()); hanbaiWin = new HanbaiWin(); hanbaiWin.SetMainWindow(this); hanbaiWin.SetRecsCsv(sRecs); hanbaiWin.SetSelectCrtId(nId); Point pt = this.PointToScreen(new Point(0.0d, 0.0d)); hanbaiWin.Left = pt.X; hanbaiWin.Top = pt.Y; hanbaiWin.Owner = this; hanbaiWin.ShowDialog(); }
public void SetHanbaiWindow(HanbaiWin wnd) { m_wndMain = null; m_wndHanbai = wnd; }
public void SetMainWindow(MainWindow wnd) { m_wndMain = wnd; m_wndHanbai = null; }