public virtual void SetName(string name, string uuids) { TangoAreaDescriptionMetaData metadata = new TangoAreaDescriptionMetaData(); metadata = mTango.LoadAreaDescriptionMetaData(uuids); metadata.Set("name", (byte[])(System.Array)name.GetBytes()); // var l = metadata.ToArray<string>(); mTango.SaveAreaDescriptionMetadata(uuids, metadata); Toast.MakeText(ApplicationContext, GetString(Resource.String.adf_save) + uuids, Android.Widget.ToastLength.Short).Show(); }
void SetADFNameDialog.SetNameCommunicator.SetName(string name, string uuid) { TangoAreaDescriptionMetaData metadata = new TangoAreaDescriptionMetaData(); metadata = mADFDataSource.Tango.LoadAreaDescriptionMetaData(uuid); var adfNameBytes = metadata.Get("name"); string comparer = StringHelper.NewString(adfNameBytes); if (comparer != name) { adfNameBytes = (byte[])(System.Array)name.GetBytes(); metadata.Set("name", (byte[])(System.Array)name.GetBytes()); } mADFDataSource.Tango.SaveAreaDescriptionMetadata(uuid, metadata); mUUIDList = mADFDataSource.FullUUIDList; mUUIDNames = mADFDataSource.UUIDNames; mADFAdapter = new ADFUUIDArrayAdapter(this, mUUIDList, mUUIDNames); mUUIDListView.Adapter = mADFAdapter; }