Ejemplo n.º 1
0
        private void InitializeCategoriesList(ImagingData data)
        {
            m_listView = FindViewById<ListView>(Resource.Id.listview_Categories);
            m_categories = new CategoriesAdapter(this, data.Categories);
            m_listView.ItemClick += OnClick_Category;

            m_listView.Adapter = m_categories;
        }
Ejemplo n.º 2
0
 private void InitializeImagesList(ImagingData data)
 {
     m_imageAdapters = new List<ImagesAdapter>(data.ImagesList.Count);
     //todo : improve this shit
     foreach (KeyValuePair<string, IList<ImageData>> kvp in data.ImagesList)
     {
         m_imageAdapters.Add(new ImagesAdapter(this, kvp.Value));
     }
 }
Ejemplo n.º 3
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            // Create your application here
            SetContentView(Resource.Layout.Miki);

            ThreadPool.QueueUserWorkItem(
                state =>
                {
                    ImagingData data = new ImagingData();
                    data.Init();
                    RunOnUiThread(new Action(() =>
                    {
                        InitializeCategoriesList(data);
                        InitializeImagesList(data);
                    }
                    ));
                }
                );
        }