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; }
public bool InsertAction(ICSharpCode.TextEditor.TextArea textArea, char ch) { textArea.InsertString(String.Format("{0}", Name)); return false; }
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; }
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; }
public bool InsertAction(ICSharpCode.TextEditor.TextArea textArea, char ch) { string completion = proposal.Completion; //if (DotStart) // completion = string.Concat(".", completion); textArea.InsertString(completion); return true; }