コード例 #1
0
        /// <summary>
        /// Codes the column names.
        /// </summary>
        /// <returns></returns>
        public InputColumnHeaders CodeColumnNames()
        {
            InputColumnHeaders columnHeaders = new InputColumnHeaders
            {
                Level1 = Level1CodeColumnName,
                Level2 = Level2CodeColumnName,
                Level3 = Level3CodeColumnName
            };

            return(columnHeaders);
        }
コード例 #2
0
        /// <summary>
        /// The names of the columns that contain the matched names used to find the codes.
        /// </summary>
        /// <returns>The Column Names</returns>
        public InputColumnHeaders MatchColumnNames()
        {
            InputColumnHeaders columnHeaders = new InputColumnHeaders
            {
                Level1 = Level1MatchedColumnName,
                Level2 = Level2MatchedColumnName,
                Level3 = Level3MatchedColumnName
            };

            return(columnHeaders);
        }
コード例 #3
0
        public DataTable Data(InputColumnHeaders inputColumnHeaders)
        {
            DataTable dt = new DataTable();
            dt.Columns.Add("Row");
            dt.Columns.Add(inputColumnHeaders.Level1);
            dt.Columns.Add(inputColumnHeaders.Level2);
            dt.Columns.Add(inputColumnHeaders.Level3);

            foreach (KeyValuePair<int, string[]> line in lines2)
            {
                object[] values = {line.Key, line.Value[0], line.Value[1], line.Value[2]};
                dt.LoadDataRow(values, true);
            }

            return dt;
        }
コード例 #4
0
        private void SetColumnNames()
        {
            InputColumnHeaders inputColumnHeaders = new InputColumnHeaders();
            inputColumnHeaders.Level1 = cboLevel1.SelectedValue as string;
            inputColumnHeaders.Level2 = cboLevel2.SelectedValue as string;
            inputColumnHeaders.Level3 = cboLevel3.SelectedValue as string;

            geoCoder.SetInputColumns(inputColumnHeaders);
        }
コード例 #5
0
 public void SetColumnNames(InputColumnHeaders columnHeaders)
 {
     columnHeaders.Validitate();
     ColumnHeaders = columnHeaders;
 }
コード例 #6
0
 public void SetColumnNames(InputColumnHeaders columnHeaders)
 {
     columnHeaders.Validitate();
     ColumnHeaders = columnHeaders;
 }
コード例 #7
0
 /// <summary>
 /// The names of the columns that contain the matched names used to find the codes.
 /// </summary>
 /// <returns>The Column Names</returns>
 public InputColumnHeaders MatchColumnNames()
 {
     InputColumnHeaders columnHeaders = new InputColumnHeaders
     {
         Level1 = Level1MatchedColumnName,
         Level2 = Level2MatchedColumnName,
         Level3 = Level3MatchedColumnName
     };
     return columnHeaders;
 }
コード例 #8
0
 /// <summary>
 /// Codes the column names.
 /// </summary>
 /// <returns></returns>
 public InputColumnHeaders CodeColumnNames()
 {
     InputColumnHeaders columnHeaders = new InputColumnHeaders
     {
         Level1 = Level1CodeColumnName,
         Level2 = Level2CodeColumnName,
         Level3 = Level3CodeColumnName
     };
     return columnHeaders;
 }
コード例 #9
0
 private static InputColumnHeaders InputColumnNames()
 {
     InputColumnHeaders inputColumnHeaders = new InputColumnHeaders();
     inputColumnHeaders.Level1 = "admin1";
     inputColumnHeaders.Level2 = "admin2";
     inputColumnHeaders.Level3 = "admin3";
     return inputColumnHeaders;
 }