Ejemplo n.º 1
0
        public static Color GetBhikkuLabelColor(BhikkuType bhikkuType)
        {
            switch (bhikkuType)
            {
            case BhikkuType.SangaUpasthayaka:
            {
                return(Color.OrangeRed);
            }

            case BhikkuType.AnusangaUpasthayaka:
            {
                return(Color.Chocolate);
            }

            case BhikkuType.Upasampada:
            {
                return(Color.LightGreen);
            }

            case BhikkuType.Samanera:
            {
                return(Color.LightSkyBlue);
            }

            case BhikkuType.all:
            {
                return(Color.LightYellow);
            }

            default:
            {
                return(Color.Transparent);
            }
            }
        }
Ejemplo n.º 2
0
        public static Image GetBhikkuLabelImage(BhikkuType bhikkuType)
        {
            switch (bhikkuType)
            {
            case BhikkuType.SangaUpasthayaka:
            {
                return(global::MahamewnawaInfo.Properties.Resources.SANGHOPASTHAYAKA);
            }

            case BhikkuType.AnusangaUpasthayaka:
            {
                return(global::MahamewnawaInfo.Properties.Resources.ANU_SANGHOPASTHAYAKA);
            }

            case BhikkuType.Upasampada:
            {
                return(global::MahamewnawaInfo.Properties.Resources.Upasampada);
            }

            default:
            {
                return(global::MahamewnawaInfo.Properties.Resources.SAMANERA);
            }
            }
        }
Ejemplo n.º 3
0
        private void updateBhikkuCountLabel(int increment, BhikkuType type)
        {
            int currentCount = Int32.Parse(allCount.Text);

            minimizedAsapuwa.allCount.Text = allCount.Text = (currentCount + increment).ToString();

            switch (type)
            {
            case BhikkuType.SangaUpasthayaka:
            {
                currentCount = Int32.Parse(sangaUpasthayakaCount.Text);
                minimizedAsapuwa.sangaUpasthayakaCount.Text = sangaUpasthayakaCount.Text = (currentCount + increment).ToString();
                return;
            }

            case BhikkuType.AnusangaUpasthayaka:
            {
                currentCount = Int32.Parse(anuSangaUpasthayakaCount.Text);
                minimizedAsapuwa.anuSangaUpasthayakaCount.Text = anuSangaUpasthayakaCount.Text = (currentCount + increment).ToString();
                return;
            }

            case BhikkuType.Upasampada:
            {
                currentCount = Int32.Parse(upasampadaCount.Text);
                minimizedAsapuwa.upasampadaCount.Text = upasampadaCount.Text = (currentCount + increment).ToString();
                return;
            }

            case BhikkuType.Samanera:
            {
                currentCount = Int32.Parse(samaneraCount.Text);
                minimizedAsapuwa.samaneraCount.Text = samaneraCount.Text = (currentCount + increment).ToString();
                return;
            }
            }
        }
Ejemplo n.º 4
0
        public static List <Image> GetBhikkuLabelImageList(BhikkuType bhikkuType, BhikkuChangeType changeType, bool isDraged, bool hover)
        {
            List <Image> imgList = new List <Image>();

            if (isDraged)
            {
                imgList.Add(global::MahamewnawaInfo.Properties.Resources.Btn_body_dis);
                imgList.Add(global::MahamewnawaInfo.Properties.Resources.Btn_tail_dis);
            }
            else
            {
                if (!hover)
                {
                    imgList.Add(global::MahamewnawaInfo.Properties.Resources.Btn_body);
                    imgList.Add(global::MahamewnawaInfo.Properties.Resources.Btn_tail);
                }
            }

            switch (bhikkuType)
            {
            case BhikkuType.SangaUpasthayaka:
            {
                if (isDraged)
                {
                    imgList.Add(DrowOnImage(global::MahamewnawaInfo.Properties.Resources.Sang_Btn_head_dis, changeType));
                }
                else
                {
                    if (hover)
                    {
                        imgList.Add(global::MahamewnawaInfo.Properties.Resources.Sang_Btn_body_hov);
                        imgList.Add(global::MahamewnawaInfo.Properties.Resources.Sang_Btn_tail_hov);
                        imgList.Add(DrowOnImage(global::MahamewnawaInfo.Properties.Resources.Sang_Btn_head_hov, changeType));
                    }
                    else
                    {
                        imgList.Add(DrowOnImage(global::MahamewnawaInfo.Properties.Resources.Sang_Btn_head_, changeType));
                    }
                }

                return(imgList);
            }

            case BhikkuType.AnusangaUpasthayaka:
            {
                if (isDraged)
                {
                    imgList.Add(DrowOnImage(global::MahamewnawaInfo.Properties.Resources.Anu_Sang_Btn_head_dis, changeType));
                }
                else
                {
                    if (hover)
                    {
                        imgList.Add(global::MahamewnawaInfo.Properties.Resources.Anu_Sang_Btn_body_hov);
                        imgList.Add(global::MahamewnawaInfo.Properties.Resources.Anu_Sang_Btn_tail_hov);
                        imgList.Add(DrowOnImage(global::MahamewnawaInfo.Properties.Resources.Anu_Sang_Btn_head_hov, changeType));
                    }
                    else
                    {
                        imgList.Add(DrowOnImage(global::MahamewnawaInfo.Properties.Resources.Anu_Sang_Btn_head_, changeType));
                    }
                }

                return(imgList);
            }

            case BhikkuType.Upasampada:
            {
                if (isDraged)
                {
                    imgList.Add(DrowOnImage(global::MahamewnawaInfo.Properties.Resources.Upasampada_Btn_head_dis, changeType));
                }
                else
                {
                    if (hover)
                    {
                        imgList.Add(global::MahamewnawaInfo.Properties.Resources.Upasampada_Btn_body_hov);
                        imgList.Add(global::MahamewnawaInfo.Properties.Resources.Upasampada_Btn_tail_hov);
                        imgList.Add(DrowOnImage(global::MahamewnawaInfo.Properties.Resources.Upasampada_Btn_head_hov, changeType));
                    }
                    else
                    {
                        imgList.Add(DrowOnImage(global::MahamewnawaInfo.Properties.Resources.Upasampada_Btn_head_, changeType));
                    }
                }

                return(imgList);
            }

            default:
            {
                if (isDraged)
                {
                    imgList.Add(DrowOnImage(global::MahamewnawaInfo.Properties.Resources.Samanera_Btn_head_dis, changeType));
                }
                else
                {
                    if (hover)
                    {
                        imgList.Add(global::MahamewnawaInfo.Properties.Resources.Samanera_Btn_body_hov);
                        imgList.Add(global::MahamewnawaInfo.Properties.Resources.Samanera_Btn_tail_hov);
                        imgList.Add(DrowOnImage(global::MahamewnawaInfo.Properties.Resources.Samanera_Btn_head_hov, changeType));
                    }
                    else
                    {
                        imgList.Add(DrowOnImage(global::MahamewnawaInfo.Properties.Resources.Samanera_Btn_head_, changeType));
                    }
                }

                return(imgList);
            }
            }
        }