コード例 #1
0
ファイル: ExtractNode.cs プロジェクト: stacyjeptha/QueryTree
 public override void UpdateSettings(Dictionary <string, object> settings)
 {
     base.UpdateSettings(settings);
     InputColumnIndex = (int)settings["InputColumnIndex"];
     StartType        = (ExtractStartTypes)settings["StartType"];
     StartPosition    = (int)settings["StartPosition"];
     StartSearch      = (string)settings["StartSearch"];
     EndType          = (ExtractEndTypes)settings["EndType"];
     EndPosition      = (int)settings["EndPosition"];
     EndSearch        = (string)settings["EndSearch"];
     ResultColumnName = (string)settings["ResultColumnName"];
 }
コード例 #2
0
ファイル: ExtractNode.cs プロジェクト: Dakicksoft/QueryTree
        public override void UpdateSettings(Dictionary <string, object> settings)
        {
            base.UpdateSettings(settings);

            if (settings.ContainsKey("InputColumnIndex"))
            {
                InputColumnIndex = Convert.ToInt32(settings["InputColumnIndex"]);
            }

            if (settings.ContainsKey("StartType"))
            {
                StartType = (ExtractStartTypes)Enum.Parse(typeof(ExtractStartTypes), settings["StartType"].ToString());
            }

            if (settings.ContainsKey("StartPosition"))
            {
                StartPosition = Convert.ToInt32(settings["StartPosition"]);
            }

            if (settings.ContainsKey("StartSearch"))
            {
                StartSearch = (string)settings["StartSearch"];
            }

            if (settings.ContainsKey("EndType"))
            {
                EndType = (ExtractEndTypes)Enum.Parse(typeof(ExtractEndTypes), settings["EndType"].ToString());
            }

            if (settings.ContainsKey("EndPosition"))
            {
                EndPosition = Convert.ToInt32(settings["EndPosition"]);
            }

            if (settings.ContainsKey("EndSearch"))
            {
                EndSearch = (string)settings["EndSearch"];
            }

            if (settings.ContainsKey("ResultColumnName"))
            {
                ResultColumnName = (string)settings["ResultColumnName"];
            }
        }