Exemplo n.º 1
0
        private void showSetNameDialog(string mCurrentUUID)
        {
            Bundle bundle = new Bundle();
            TangoAreaDescriptionMetaData metaData = mADFDataSource.Tango.LoadAreaDescriptionMetaData(mCurrentUUID);

            byte[] adfNameBytes = metaData.Get("name");
            if (adfNameBytes != null)
            {
                string fillDialogName = StringHelper.NewString(adfNameBytes);
                bundle.PutString("name", fillDialogName);
            }
            bundle.PutString("id", mCurrentUUID);
            FragmentManager  manager          = FragmentManager;
            SetADFNameDialog SetADFNameDialog = new SetADFNameDialog();

            SetADFNameDialog.Arguments = (bundle);
            SetADFNameDialog.Show(manager, "ADFNameDialog");
        }
Exemplo n.º 2
0
        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;
        }
Exemplo n.º 3
0
        private void showSetNameDialog()
        {
            Bundle bundle = new Bundle();

            if (mCurrentUUID == null)
            {
                mCurrentUUID = mTango.SaveAreaDescription();
            }
            Log.Info("UUID", " uuid is: " + mCurrentUUID);
            TangoAreaDescriptionMetaData metaData = mTango.LoadAreaDescriptionMetaData(mCurrentUUID);

            byte[] adfNameBytes = metaData.Get("name");
            if (adfNameBytes != null)
            {
                string fillDialogName = StringHelper.NewString(adfNameBytes);
                bundle.PutString("name", fillDialogName);
            }
            bundle.PutString("id", mCurrentUUID);
            FragmentManager  manager          = FragmentManager;
            SetADFNameDialog SetADFNameDialog = new SetADFNameDialog();

            SetADFNameDialog.Arguments = bundle;
            SetADFNameDialog.Show(manager, "ADFNameDialog");
        }