Write() public method

public Write ( string s ) : void
s string
return void
コード例 #1
0
ファイル: csigui.cs プロジェクト: oleg-shilo/cs-script
 public static void Main(string[] args) {
     GuiConsoleForm form = new GuiConsoleForm(caption,prompt,new StringHandler(ProcessLine));
     GuiConsole console = new GuiConsole(form);
     Interpreter.Console = console;
     console.Write(caption+"\n"+prompt);        
     interp = new Interpreter();
     string defs = args.Length > 0 ? args[0] : interp.DefaultIncludeFile();
     interp.ReadIncludeFile(defs);        
     interp.SetValue("form",form);
     interp.SetValue("text",form.TextBox);
     Application.Run(form);
 }   
コード例 #2
0
ファイル: csigui.cs プロジェクト: zhouzu/cs-script
    public static void Main(string[] args)
    {
        GuiConsoleForm form    = new GuiConsoleForm(caption, prompt, new StringHandler(ProcessLine));
        GuiConsole     console = new GuiConsole(form);

        Interpreter.Console = console;
        console.Write(caption + "\n" + prompt);
        interp = new Interpreter();
        string defs = args.Length > 0 ? args[0] : interp.DefaultIncludeFile();

        interp.ReadIncludeFile(defs);
        interp.SetValue("form", form);
        interp.SetValue("text", form.TextBox);
        Application.Run(form);
    }
コード例 #3
0
    public static Interpreter XMain(string[] args)
    {
        GuiConsoleForm form    = new GuiConsoleForm(caption, prompt, new StringHandler(ProcessLine));
        GuiConsole     console = new GuiConsole(form);

        console.Write(caption + "\n" + prompt);
        string defs = args.Length > 0 ? args[0] : "csigui.csi";

        Interpreter.Console = console;
        interp = new Interpreter();
        interp.ReadIncludeFile(defs);
        interp.SetValue("form", form);
        interp.SetValue("text", form.TextBox);
        form.Show();
        return(interp);
        // Application.Run(form);
    }