Ejemplo n.º 1
0
 public Alarm_AlarmsList_ArrayAdapter(Activity context, List <AlarmObj> ListOfLists, Alarm_NewAlarm NewAlarm, Fragment Current)
     : base(context, Resource.Layout.Alarm_AlarmsList_Adapter, ListOfLists)
 {
     this.context     = context;
     this.ListOfLists = ListOfLists;
     this.NewAlarm    = NewAlarm;
     this.Current     = Current;
 }
Ejemplo n.º 2
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            RequestWindowFeature(WindowFeatures.NoTitle);
            Window.SetFlags(WindowManagerFlags.Fullscreen, WindowManagerFlags.Fullscreen);

            Bundle Data       = Intent.Extras;
            string LaunchType = (Data != null) ? Data.GetString("LaunchType") : string.Empty;

            base.OnCreate(savedInstanceState);

            SetContentView(Resource.Layout.Alarm);

            Container = FindViewById <FrameLayout>(Resource.Id.frameLayout1);

            NewAlarm   = new Alarm_NewAlarm();
            AlarmsList = new Alarm_AlarmsList(NewAlarm, this);

            NewAlarm.AlarmList = AlarmsList;

            FragmentTransaction transact = FragmentManager.BeginTransaction();

            transact.Add(Container.Id, NewAlarm, "NewAlarm");
            transact.Add(Container.Id, AlarmsList, "AlarmsList");

            if (LaunchType.Equals("NewAlarm"))
            {
                transact.Hide(AlarmsList);
                NewAlarm.OnFragmentShown();
            }
            else
            {
                transact.Hide(NewAlarm);
            }

            transact.Commit();
        }
Ejemplo n.º 3
0
 public Alarm_AlarmsList(Alarm_NewAlarm NewAlarm, Activity context)
 {
     this.NewAlarm = NewAlarm;
     this.context  = context;
 }