コード例 #1
0
 public void madeForYouToolStripMenuItem()
 {
     Controllers.UIController.Instance.MainSplitForm.middlePanel.Controls.Clear();
     theListsContentPage = new UIs.valentina.ListsContentPage();
     Controllers.UIController.Instance.MainSplitForm.middlePanel.Controls.Add(theListsContentPage);
     designEditOfPanels(theListsContentPage);
 }
コード例 #2
0
        public void MyEventsListsContentPageLoad(int userId, UIs.valentina.ListsContentPage theListContentPage)
        {
            int EventNum = Classes.DatabaseGeneralMethods.ReturnNumberOfUserEvents(userId);


            Classes.DatabaseGeneralMethods.GetUserEventCategoryIds(userId);
            Classes.DatabaseGeneralMethods.GetUserEventIds(userId);

            for (int i = 0; i < EventNum; i++)
            {
                var eventImagePath = Classes.DatabaseGeneralMethods.returnImageOfEvent(Convert.ToInt32(eventIDList[i]));
                var eventImage     = eventImagePath == "" ? null : Classes.Utility.DownloadImage(eventImagePath);
                var eventTitle     = Classes.DatabaseGeneralMethods.returnTitleOfEvent(Convert.ToInt32(eventIDList[i]));
                var catColor       = Classes.DatabaseGeneralMethods.GetCategoryColorOfEvent(Convert.ToInt32(eventCategoryIDList[i]));
                var eventminiview  = new UIs.Common.EventMiniView(catColor, Convert.ToInt32(eventIDList[i]), eventTitle, eventImage);
                //  eventminiview.Scale(0.55F);
                theListContentPage.EventHolderFlowLayoutPanel.Controls.Add(eventminiview);
            }
        }