Exemplo n.º 1
0
        // callback方式异步请求处理,非阻塞访问
        private void enterDba_Click(object sender, EventArgs e)
        {
            MyfilesObject myfileObject = new MyfilesObject();

            myfileObject.user = "******";
            myfileObject.url  = bmobFile;

            Bmob.Create <MyfilesObject>(myfileObject, (resp, ex) =>
            {
                // http://msdn.microsoft.com/en-us/library/vstudio/zyzhdc6b(v=vs.100).aspx
                Invoke(new doUiThread(
                           () =>
                {
                    FinishedCallback(resp, resultText);

                    formstatus.Text = "保存成功!";
                }
                           ));
            });
        }
Exemplo n.º 2
0
 public BmobRemote Create(String tablename, IBmobWritable data)
 {
     BmobWrapper.Create(tablename, data, NonCallback);
     return(this);
 }