예제 #1
0
        void ClosePriceFillter(string pubName)
        {
            PillControl pp = (PillControl)FindName(pubName);

            pp.Visibility        = Visibility.Collapsed;
            chkPrice.IsChecked   = false;
            panelPrice.IsEnabled = false;
            Fillter();
            UpdateResultCountChips(FilttedMedicineSet);
        }
예제 #2
0
        /// <summary>
        /// Generates button pills for each course
        /// </summary>
        private void LoadCoursesPills()
        {
            //Load Courses
            var courses = AllCoursesDetailsEnumerable;

            foreach (var course in courses)
            {
                #region CREATE PILL BUTTON FOR EACH COURSE

                var pillControl = new PillControl
                {
                    Text          = course.courseName,
                    PillBackColor = Color.OrangeRed
                };

                pillControl.MouseEnter += delegate
                {
                    _tempBackColor = pillControl.PillBackColor;

                    pillControl.PillBackColor = Color.DarkSlateGray;
                };

                pillControl.MouseLeave += delegate
                {
                    pillControl.PillBackColor = _tempBackColor;
                };

                pillControl.Click += delegate
                {
                    MessageBox.Show("clicked");
                    LoadCourseNotesLabel(course.courseId);
                };

                pillControl.Location = new Point(15, _point.Y + 10 + pillControl.Height);

                _point = new Point(8, pillControl.Location.Y);

                panel3.Controls.Add(pillControl);
                pillControl.Show();

                #endregion CREATE PILL BUTTON FOR EACH COURSE
            }
        }