Example #1
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            string sFileName;

            string[] sLine;
            int      idx, max;

            sFileName = m_sEnvPath + "\\Hikidemono.txt";
            sLine     = m_libCmn.LoadFileLineSJIS(sFileName);
            max       = sLine.Length;
            for (idx = 1; idx < max; idx++)
            {
                if (sLine[idx] != "")
                {
                    lstSource.Items.Add(sLine[idx]);
                }
            }
            max = m_lstSyouhin.Count;
            for (idx = 0; idx < max; idx++)
            {
                if (m_lstSyouhin[idx] != "")
                {
                    lstSelect.Items.Add(m_lstSyouhin[idx]);
                }
            }
        }
Example #2
0
        private void loadSekijiEnv()
        {
            string sFileName;

            string[] aryLine;
            int      idx, max;

            string[] ary;
            string   str;

            sFileName = m_sExecPath + "\\ses_sys.env";
            if (!(System.IO.File.Exists(sFileName)))
            {
                MessageBox.Show(sFileName + "ファイルが見つかりません", "確認", MessageBoxButton.OK);
            }
            else
            {
                aryLine = m_libCmn.LoadFileLineSJIS(sFileName);
                if (12 <= aryLine.Length)
                {
                    m_sWakuBasePath = aryLine[11];
                }
            }
            sFileName = m_sEnvPath + "\\sekiji.txt";
            if (!(System.IO.File.Exists(sFileName)))
            {
                m_sFontFamilyNameCrt = "メイリオ";
            }
            else
            {
                aryLine = m_libCmn.LoadFileLineSJIS(sFileName);
                m_sFontFamilyNameCrt = aryLine[1];
            }
            sFileName = m_sEnvPath + "\\smsoutone.txt";
            if (!(System.IO.File.Exists(sFileName)))
            {
                m_sSekiFudaFolder = "席札";
                m_sSekiFudaWaku   = "席札";
                cmbSmsOutOne.Items.Add(m_sSekiFudaWaku);
                cmbSmsOutOne.SelectedIndex = 0;
            }
            else
            {
                aryLine           = m_libCmn.LoadFileLineSJIS(sFileName);
                ary               = aryLine[0].Split(',');
                m_sSekiFudaFolder = ary[1];
                max               = aryLine.Length;
                for (idx = 1; idx < max; idx++)
                {
                    if (aryLine[idx] != "")
                    {
                        cmbSmsOutOne.Items.Add(aryLine[idx]);
                    }
                }
                cmbSmsOutOne.SelectedIndex = 0;
                m_sSekiFudaWaku            = aryLine[1];
            }
            sFileName = m_sEnvPath + "\\smsoutany.txt";
            if (!(System.IO.File.Exists(sFileName)))
            {
                m_sAnySekijiFolder = "席札";
                m_sAnySekijiWaku   = "並列";
                m_nAnySekijiCount  = 10;
                str = m_sAnySekijiWaku + "," + m_nAnySekijiCount;
                cmbSmsOutAny.Items.Add(str);
                cmbSmsOutAny.SelectedIndex = 0;
            }
            else
            {
                aryLine            = m_libCmn.LoadFileLineSJIS(sFileName);
                ary                = aryLine[0].Split(',');
                m_sAnySekijiFolder = ary[1];
                max                = aryLine.Length;
                for (idx = 1; idx < max; idx++)
                {
                    if (aryLine[idx] != "")
                    {
                        cmbSmsOutAny.Items.Add(aryLine[idx]);
                    }
                }
                cmbSmsOutAny.SelectedIndex = 0;
                ary = aryLine[1].Split(',');
                m_sAnySekijiWaku  = ary[0];
                m_nAnySekijiCount = m_libCmn.StrToInt(ary[1]);
            }
        }