public void method_5(XmlCommand xmlCommand_0)
 {
     if (xmlCommand_0 != null)
     {
         this.txtName.Text = xmlCommand_0.CommandName;
         this.txtCode.SetText((string)xmlCommand_0.CommandText);
         this.txtDataBase.Text = xmlCommand_0.Database;
         this.method_3(xmlCommand_0.Parameters);
         this.nudTimeout.Value = xmlCommand_0.Timeout;
         this.cboCommandType.Text = xmlCommand_0.CommandType.ToString();
     }
 }
 internal static int UnicodeCharLength(XmlCommand xmlCommand)
 {
     if (xmlCommand.Parameters.Count != 0)
     {
         XmlCmdParameter parameter = xmlCommand.Parameters[0];
         int num2 = 0;
         while (num2 < parameter.Name.Length)
         {
             if (char.IsLetter(parameter.Name[num2]))
             {
                 break;
             }
             num2++;
         }
         if (num2 < parameter.Name.Length)
         {
             return num2;
         }
     }
     return 0;
 }
 public static string CallXmlCommandMethodGenerator(XmlCommand xmlCommand, string spname, int prefiexIndex, bool isPaging)
 {
     DbCommand command = new SqlCommand();
     return CallProcMethodGenerator(xmlCommand.GetXmlDbParameter(command), spname, prefiexIndex, isPaging);
 }
 public ShowCallCodeDialog(XmlCommand xmlCommand_1, string string_1)
 {
     this.InitializeComponent();
     this.xmlCommand_0 = xmlCommand_1;
     this.string_0 = string_1;
 }
Beispiel #5
0
 private static int smethod_0(XmlCommand xmlCommand_0, XmlCommand xmlCommand_1)
 {
     return string.Compare(xmlCommand_0.CommandName, xmlCommand_1.CommandName, StringComparison.OrdinalIgnoreCase);
 }
Beispiel #6
0
 public static void SetTagValue(this TreeNode treeNode, XmlCommand xmlCommand)
 {
     treeNode.Tag = xmlCommand;
 }