コード例 #1
0
        private void FabOnClick(object sender, EventArgs eventArgs)
        {
            //View view = (View) sender;
            //Snackbar.Make(view, "Replace with your own action", Snackbar.LengthLong)
            //    .SetAction("Action", (Android.Views.View.IOnClickListener)null).Show();

            UI.Input.InputTxt(this, "Enter msg", (s) => {
                //RealmDb.Instance.AddMessage(s);
                RealmDb.AddMessage(s);
            });
        }
コード例 #2
0
        private void ThreadTest()
        {
            Task.Run(async() =>
            {
                try
                {
                    await Task.Delay(100);
                    //var r = RealmDb.GetRealmInstance();

                    //RealmDb.Instance.AddMessage("Test msg");
                    RealmDb.AddMessage("Test msg");
                }
                catch (Exception exp)
                {
                    System.Diagnostics.Debug.WriteLine(exp.Message);
                }
            });
        }