Example #1
0
 public MainWindow()
 {
     InitializeComponent();
     m_nWaitSecond = 3;
     m_sExePath    = InitExePath();
     m_sEnvPath    = InitEnvPath();
     m_libCmn      = new LibCommon();
     m_libExcel    = new LibExcel();
     LoadEnv();
     this.WindowState = WindowState.Minimized;
 }
Example #2
0
        public string SetWndClass(MainWindow wnd)
        {
            String   strDate;
            DateTime dt = DateTime.Now;

            strDate = dt.ToString("yyyyMMddHHmmss");

            m_wnd         = wnd;
            m_libCmn      = m_wnd.m_libCmn;
            m_libExcel    = m_wnd.m_libExcel;
            m_nWaitSecond = m_wnd.m_nWaitSecond;
            m_sCrctFile   = m_wnd.m_sCrctPath + "\\outcrect.dat";
            m_sSrcDefFile = m_wnd.m_sExePath + "\\template.txt";
            m_sSrcXlsFile = m_wnd.m_sExePath + "\\template.xlsx";
            m_sDstXlsFile = m_wnd.m_sExcelSavePath + "\\" + strDate + ".xlsx";
            if (System.IO.File.Exists(m_sSrcXlsFile) == false)
            {
                m_sSrcXlsFile = m_wnd.m_sExePath + "\\template.xls";
                m_sDstXlsFile = m_wnd.m_sExcelSavePath + "\\" + strDate + ".xls";
            }
            //m_sDstXlsFile = m_wnd.m_sExcelSavePath + "\\temp.xls";
            return(m_sDstXlsFile);
        }