コード例 #1
0
        //────────────────────────────────────────

        public void OpenCsv()
        {
            if (System.IO.File.Exists(this.Owner_MemoryApplication.Filepath_Csv))
            {
                // CSVファイルが開かれた。

                //List<string[]> listArraystring_Table;
                Table_Humaninput tableH;

                //関数2
                {
                    Function2_LoadCsv f2 = new Function2_LoadCsv();
                    f2.In_Filepathabsolute = this.Owner_MemoryApplication.Filepath_Csv;
                    f2.Perfrom();

                    if ("" != f2.Out_Errormessage)
                    {
                        MessageBox.Show(f2.Out_Errormessage, "エラー");
                        goto gt_EndMethod;
                    }

                    this.pclstLayer.Items.Clear();
                    foreach (int nKey in this.Owner_MemoryApplication.DictionaryLayer.Keys)
                    {
                        this.pclstLayer.Items.Add(nKey);
                    }

                    if (0 < this.pclstLayer.Items.Count)
                    {
                        this.pclstLayer.SelectedIndex = 0;
                    }

                    tableH = f2.Out_Table_Humaninput;
                }

                //関数3
                {
                    Function3_LoadCsv2 f3 = new Function3_LoadCsv2();
                    f3.In_UsercontrolCanvas = this;
                    f3.In_Table_Humaninput  = tableH;
                    f3.Perform();
                }
            }

            goto gt_EndMethod;
            //
gt_EndMethod:
            ;
        }
コード例 #2
0
ファイル: UsercontrolCanvas.cs プロジェクト: muzudho/CSVExE
        //────────────────────────────────────────
        public void OpenCsv()
        {
            if (System.IO.File.Exists(this.Owner_MemoryApplication.Filepath_Csv))
            {

                // CSVファイルが開かれた。

                //List<string[]> listArraystring_Table;
                Table_Humaninput tableH;

                //関数2
                {
                    Function2_LoadCsv f2 = new Function2_LoadCsv();
                    f2.In_Filepathabsolute = this.Owner_MemoryApplication.Filepath_Csv;
                    f2.Perfrom();

                    if ("" != f2.Out_Errormessage)
                    {
                        MessageBox.Show(f2.Out_Errormessage, "エラー");
                        goto gt_EndMethod;
                    }

                    this.pclstLayer.Items.Clear();
                    foreach (int nKey in this.Owner_MemoryApplication.DictionaryLayer.Keys)
                    {
                        this.pclstLayer.Items.Add(nKey);
                    }

                    if (0 < this.pclstLayer.Items.Count)
                    {
                        this.pclstLayer.SelectedIndex = 0;
                    }

                    tableH = f2.Out_Table_Humaninput;
                }

                //関数3
                {
                    Function3_LoadCsv2 f3 = new Function3_LoadCsv2();
                    f3.In_UsercontrolCanvas = this;
                    f3.In_Table_Humaninput = tableH;
                    f3.Perform();
                }
            }

            goto gt_EndMethod;
            //
            gt_EndMethod:
            ;
        }