コード例 #1
0
 public void changeOrderToEnterDataFragments()
 {
     using (var ft = SupportFragmentManager.BeginTransaction())
     {
         var edFt = new EnterDataFragment();
         ft.Replace(Resource.Id.dataInputFragment, edFt);
         ft.Commit();
     }
 }
コード例 #2
0
        protected override async void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.mainLayout);
            // Create your application here


            string _mainScreenMode = Intent.GetStringExtra("MainScreenMode");



            Values.hFt = new headerFragment();

            var ft = SupportFragmentManager.BeginTransaction();

            ft.Replace(Resource.Id.headerFragment, Values.hFt);
            //ft.Commit();

            if (_mainScreenMode == "NEW")
            {
                var oFt = new orderFragment();
                ft.Replace(Resource.Id.dataInputFragment, oFt);
            }
            else
            {
                var edFt = new EnterDataFragment();
                ft.Replace(Resource.Id.dataInputFragment, edFt);
                Values.elIntent = new Intent(this, typeof(DataTransferManager));
                StartService(Values.elIntent);
            }



            Values.iFt = new infoFragment(8);
            ft.Replace(Resource.Id.InfoFragment, Values.iFt);

            Values.dFt = new infoFragment(5);
            ft.Replace(Resource.Id.DebugFragment, Values.dFt);

            Values.sFt = new statusFragment();
            ft.Replace(Resource.Id.StatusFragment, Values.sFt);
            ft.Commit();

            //Values.dtm = new DataTransferManager();
            //start the transmission service
            Values.MyDeviceInfo = await GetDeviceInfo(cDeviceInfo.Serial);

            Values.GEO = Values.MyDeviceInfo.flags.Contains("GEOLOCATION");

            EspackCommServer.Server.PropertyChanged += ConnectionServer_PropertyChanged;
        }