public void SetMainWindow(MainWindow wnd) { m_wndMain = wnd; m_clsHaiseki = m_wndMain.m_clsHaiseki; m_libCmn = m_wndMain.m_libCmn; m_libCanvas = m_wndMain.m_libCanvas; m_sExecPath = m_wndMain.m_sExecPath; }
public MainWindow() { InitializeComponent(); m_bModify = false; m_sExecPath = initExePath(); App.m_sExecPath = m_sExecPath; m_libCmn = new LibCommon(); m_libCanvas = new LibCanvas(); m_libOdbc = new LibOdbc(); m_libOdbc.setExecPath(m_sExecPath); m_libOdbc.setLibCommonClass(m_libCmn); m_sEnvPath = initEnvPath(); m_clsHaiseki = new ClsHaiseki(); m_clsHaiseki.createListElement(); m_nCrtTable = -1; m_nCrtSeet = -1; m_bMoveSeet = false; m_brushNomal = txtSouke.BorderBrush; m_thicknessNomal = txtSouke.BorderThickness; m_brushSlelct = m_libCanvas.createBruch(0x00ff0000); m_thicknessSelect = new Thickness(3); initElement(); }