Пример #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");
        }
Пример #2
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");
        }