示例#1
0
文件: Table.cs 项目: GUrbiola/Ez_SQL
 public bool InsertAction(ICSharpCode.TextEditor.TextArea textArea, char ch)
 {
     if(ch == '1')
         textArea.InsertString(String.Format("{0}", Name));
     else
         textArea.InsertString(String.Format("{0}.{1}", Schema, Name));
     return false;
 }
示例#2
0
 public bool InsertAction(ICSharpCode.TextEditor.TextArea textArea, char ch)
 {
     textArea.InsertString(String.Format("{0}", Name));
     return false;
 }
示例#3
0
        public bool InsertAction(ICSharpCode.TextEditor.TextArea textArea, char ch)
        {
            string ToWrite = String.Format("EXEC {0}.{1} {2}", Schema, Name, Environment.NewLine);
            foreach (ISqlChild Ch in Childs)
                ToWrite += String.Format("{0} = ''{3} --{1}{2}", Ch.Name, Ch.Type, Environment.NewLine, (Childs.IndexOf(Ch) == Childs.Count - 1 ? "" : ","));
            if (ToWrite.EndsWith(", "))
                ToWrite = ToWrite.Substring(0, ToWrite.Length - 2);

            textArea.InsertString(ToWrite);
            return false;
        }
示例#4
0
        public bool InsertAction(ICSharpCode.TextEditor.TextArea textArea, char ch)
        {
            string ToWrite;
            if (ch == '1')
                ToWrite = String.Format("{0} (", Name);
            else
                ToWrite = String.Format("{0}.{1} (", Schema, Name);

            foreach (ISqlChild Ch in Childs.Where(X => X.Kind == ChildType.Parameter))
                ToWrite += String.Format("{0} /*{1}*/, ", Ch.Name, Ch.Type, Environment.NewLine);
            if (ToWrite.EndsWith(", "))
                ToWrite = ToWrite.Substring(0, ToWrite.Length - 2);

            textArea.InsertString(ToWrite + ")");
            return false;
        }
示例#5
0
 public bool InsertAction(ICSharpCode.TextEditor.TextArea textArea, char ch)
 {
     string completion = proposal.Completion;
     //if (DotStart)
     //    completion = string.Concat(".", completion);
     textArea.InsertString(completion);
     return true;
 }