Ejemplo n.º 1
0
    public override FileNode init(bitboardWorld world)
    {
        this.myworld = world;
        Console.WriteLine("procfs init");
        this.myModules.Add(new Module("test", "", world));

        return(this.myroot);
    }
Ejemplo n.º 2
0
        public BEdit(bitboardWorld world, string path)
        {
            this.myWorld = world;

            InitializeComponent();

            if (path != "" && path != null)
            {
                this.currentPath = path;
                this.Name = path;
                editFile = myWorld.agi.read(path, "", 0, 0);
                if (editFile != null && editFile.getType() == fileTypes.Text)
                    richTextBox1.Text = editFile.getData();
            }
        }
Ejemplo n.º 3
0
 public ShellForm(bitboardWorld world)
 {
     InitializeComponent();
     this.world = world;
     this.world.setStdOut(richTextBox1);
     this.addCommand(new echo());
     this.addCommand(new write());
     this.addCommand(new cat());
     this.addCommand(new ls());
     this.addCommand(new cls());
     this.addCommand(new mkdir());
     this.addCommand(new dump());
     this.addCommand(new text());
     this.addCommand(new cp());
     Console.WriteLine("start path: "+ this.world.SysRoot);
 }
Ejemplo n.º 4
0
 public ShellForm(bitboardWorld world)
 {
     InitializeComponent();
     this.world = world;
     this.world.setStdOut(richTextBox1);
     this.addCommand(new echo());
     this.addCommand(new write());
     this.addCommand(new cat());
     this.addCommand(new ls());
     this.addCommand(new cls());
     this.addCommand(new mkdir());
     this.addCommand(new dump());
     this.addCommand(new text());
     this.addCommand(new cp());
     Console.WriteLine("start path: " + this.world.SysRoot);
 }
Ejemplo n.º 5
0
Archivo: BEdit.cs Proyecto: benixos/agi
        public BEdit(bitboardWorld world, string path)
        {
            this.myWorld = world;

            InitializeComponent();

            if (path != "" && path != null)
            {
                this.currentPath = path;
                this.Name        = path;
                editFile         = myWorld.agi.read(path, "", 0, 0);
                if (editFile != null && editFile.getType() == fileTypes.Text)
                {
                    richTextBox1.Text = editFile.getData();
                }
            }
        }
Ejemplo n.º 6
0
 public override int Run(string[] args, bitboardWorld world)
 {
     this.myWorld = world;
     return this.main(args);
 }
Ejemplo n.º 7
0
 public abstract int Run(string[] args, bitboardWorld world);
Ejemplo n.º 8
0
 public override int Run(string[] args, bitboardWorld world)
 {
     this.myWorld = world;
     return(this.main(args));
 }
Ejemplo n.º 9
0
 public jsLoadable(bitboardWorld currentWorld)
 {
     this.world = currentWorld;
     this.web = new WebBrowser();
 }
Ejemplo n.º 10
0
    public override FileNode init(bitboardWorld world)
    {
        this.myworld = world;
        Console.WriteLine("procfs init");
        this.myModules.Add(new Module("test", "", world));

        return this.myroot;
    }
Ejemplo n.º 11
0
 public Module(string name, string sourcefile, bitboardWorld host)
 {
     this.Name = name;
     this.myTask = new jsLoadable(host);
 }
Ejemplo n.º 12
0
 public abstract int Run(string[] args, bitboardWorld world);
Ejemplo n.º 13
0
 public Module(string name, string sourcefile, bitboardWorld host)
 {
     this.Name   = name;
     this.myTask = new jsLoadable(host);
 }
Ejemplo n.º 14
0
 public jsLoadable(bitboardWorld currentWorld)
 {
     this.world = currentWorld;
     this.web   = new WebBrowser();
 }