示例#1
0
 public DateTimeDialog(bool isStartDate, CreateEvent createEvent)
 {
     this.createEvent = createEvent;
     this.isStartDate = isStartDate;
     if(isStartDate)
     {
         dateTime = createEvent.startDateTime;
     } else
     {
         dateTime = createEvent.endDateTime;
     }
 }
示例#2
0
文件: Home.cs 项目: wijen1/HowlOut
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            // Set our view from the mangeEvents layout resource
            SetContentView(Resource.Layout.ToolBar);

            topToolBar = FindViewById<SupportToolbar>(Resource.Id.toptoolbar);
            SetSupportActionBar(topToolBar);
            SupportActionBar.Title = "";
            bottomToolBar = FindViewById<SupportToolbar>(Resource.Id.bottomtoolbar);
            drawerLayout = FindViewById<DrawerLayout>(Resource.Id.drawer_layout);
            rightDrawer = FindViewById<ListView>(Resource.Id.right_drawer);

            createEventFragment = new Fragments.CreateEvent();
            //inspectEventFragment = new Fragments.InspectEvent();
            inspectSearchFragment = new Fragments.InspectSearch();
            manageEventsFragment = new Fragments.ManageEvents();
            myUserFragment = new Fragments.MyUser();
            searchEventsFragment = new Fragments.SearchEvents();

            stackFragments = new Stack<SupportFragment>();

            var trans = SupportFragmentManager.BeginTransaction();
            trans.Add(Resource.Id.fragmentContainer, manageEventsFragment, "ManageEvents");
            trans.Commit();

            currentFragment = manageEventsFragment;

            rightDataSet = new List<string>();
            rightDataSet.Add("Account");
            rightDataSet.Add("Settings");
            rightDataSet.Add("Log-off");

            rightAdapter = new ArrayAdapter<string>(this, Resource.Layout.list_white_text, rightDataSet);
            rightDrawer.Adapter = rightAdapter;

            rightDrawer.ItemClick += RightDrawer_ItemClick;

            var manageEventsButton = FindViewById<ImageButton>(Resource.Id.action_manage_events);
            manageEventsButton.Click += ManageEventsButton_Click;

            //var addEventsButton = FindViewById<ImageButton>(Resource.Id.action_add_event);
            //addEventsButton.Click += AddEventsButton_Click;

            var findEventsButton = FindViewById<ImageButton>(Resource.Id.action_find_events);
            findEventsButton.Click += FindEventsButton_Click;
        }