Example #1
0
 static public void exit_program(ClassSystem obj, int code, ClassString mesg)
 {
     if (mesg != null)
     {
         Bard.log("EXITING: " + mesg.data);
     }
     PlasmacoreWP7.Main.instance.Exit();
 }
Example #2
0
        static public void print(ClassStdOutWriter obj, ClassString st)
        {
            String cst = Bard.cs_str(st);

            if (cst.Length > 1 || cst[0] != 10)
            {
                Bard.log(cst);
            }
        }
Example #3
0
 static public void print(ClassStdOutWriter obj, char ch)
 {
     if (ch == 10)
     {
         Bard.log(log_buffer.ToString());
         log_buffer.Length = 0;
     }
     else
     {
         log_buffer.Append(ch);
     }
 }
Example #4
0
        static public void open_url(ClassSystem obj, ClassString url)
        {
            String url_str = Bard.cs_str(url);

            if (url_str.StartsWith("http"))
            {
                Microsoft.Phone.Tasks.WebBrowserTask task = new Microsoft.Phone.Tasks.WebBrowserTask();
                task.URL = url_str;
                task.Show();
            }
            else
            {
                Microsoft.Phone.Tasks.MarketplaceDetailTask task = new Microsoft.Phone.Tasks.MarketplaceDetailTask();
                task.ContentType       = Microsoft.Phone.Tasks.MarketplaceContentType.Applications;
                task.ContentIdentifier = url_str;
                task.Show();
            }
        }
Example #5
0
 static public void write(ClassFileWriter writer, char value)
 {
     Bard.log("TODO: Native FileWriter");
 }
Example #6
0
 static public void write(ClassFileWriter writer, byte[] array, int index, int count)
 {
     Bard.log("TODO: Native FileWriter");
 }
Example #7
0
 static public bool is_directory(ClassFile file)
 {
     Bard.log("TODO: NativeFile::is_directory()");
     return(false);
 }
Example #8
0
 static public void close(ClassFileWriter writer)
 {
     Bard.log("TODO: Native FileWriter");
 }
Example #9
0
 static public void rename(ClassFile file, ClassString new_name)
 {
     Bard.log("TODO: NativeFile::rename()");
 }
Example #10
0
 static public void write(ClassObject writer, char ch)
 {
     Bard.log("TODO: NativeSocketWriter::write()");
 }
Example #11
0
 static public void init(ClassObject socket, ClassString address, int port)
 {
     Bard.log("TODO: NativeSocket::init()");
 }
Example #12
0
 static public ClassString absolute_filepath(ClassFile file)
 {
     Bard.log("TODO: NativeFile::absolute_filepath()");
     return(null);
 }
Example #13
0
 static public void touch(ClassFile file)
 {
     Bard.log("TODO: NativeFile::touch()");
 }
Example #14
0
 static public void change_dir(ClassFile file)
 {
     Bard.log("TODO: NativeFile::change_dir()");
 }
Example #15
0
 static public long timestamp(ClassFile file)
 {
     Bard.log("TODO: NativeFile::timestamp()");
     return(0);
 }
Example #16
0
 static public void native_mkdir(ClassFile file)
 {
     Bard.log("TODO: NativeFile::native_mkdir()");
 }
Example #17
0
 static public void delete(ClassFile file)
 {
     Bard.log("TODO: NativeFile::delete()");
 }
Example #18
0
 static public void write(ClassFileWriter writer, ClassString st)
 {
     Bard.log("TODO: Native FileWriter");
 }
Example #19
0
 static public void close(ClassObject socket)
 {
     Bard.log("TODO: NativeSocket::close()");
 }
Example #20
0
 static public int position(ClassFileWriter writer)
 {
     Bard.log("TODO: Native FileWriter");
     return(0);
 }
Example #21
0
 static public bool has_another(ClassObject reader)
 {
     Bard.log("TODO: NativeSocketReader::has_another()");
     return(false);
 }
Example #22
0
 static public int read(ClassFileReader reader, char[] array, int index, int count)
 {
     Bard.log("TODO: NativeFileReader::read(char[],...)");
     return(0);
 }
Example #23
0
 static public ClassArrayList_of_String directory_listing(ClassFile file)
 {
     Bard.log("TODO: NativeFile::directory_listing()");
     return(null);
 }
Example #24
0
 static public bool is_connected(ClassObject socket)
 {
     Bard.log("TODO: NativeSocket::is_connected()");
     return(false);
 }
Example #25
0
 static public int remaining(ClassFileReader reader)
 {
     Bard.log("TODO: NativeFileReader::remaining()");
     return(0);
 }
Example #26
0
 static public int available(ClassObject reader)
 {
     Bard.log("TODO: NativeSocketReader::available()");
     return(0);
 }
Example #27
0
 static public void skip(ClassFileReader reader, int skip_count)
 {
     Bard.log("TODO: NativeFileReader::skip()");
 }
Example #28
0
 static public char read(ClassObject reader)
 {
     Bard.log("TODO: NativeSocketReader::read()");
     return((char)0);
 }
Example #29
0
 static public int position(ClassFileReader reader)
 {
     Bard.log("TODO: NativeFileReader::position()");
     return(0);
 }
Example #30
0
 public ClassException( Bard.CallInit call_init )
 {
     if (call_init == Bard.CallInit.TRUE) init_object();
 }
Example #31
0
 static public void init(ClassFileWriter writer, ClassString filename, bool append_mode)
 {
     Bard.log("TODO: Native FileWriter::init()");
 }