5 Replies - 7066 Views - Last Post: 06 April 2011 - 12:23 PM Rate Topic: -----

#1 Blind_Geek81   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 11
  • Joined: 28-February 11

Linking/Merging C# Projects & Changing Colors

Posted 05 April 2011 - 10:30 AM

How would I merge a character creator program with any other program? For example, let's say I've already created this character creator and am now creating a blackjack game. I want the player to be able to create their own avatar. My first thought is, why invent the wheel twice? Why not make the custom character program easily accessible to other programs? Does anyone have any idea how I'd do that?

Also, how would I change the color of the various objects (i.e. hair, skin, etc.) without having to upload several images and massively increasing the size of your program? I was going to attach the horoscope project I'm working on now, but it is to big to attach to the question. Here is the code, however. Please note that it is not even close to finished or working properly as of yet. It can determine the correct signs after you enter your year, but it will only change your Lunar (Chinese) sign and not your Solar (Western) sign.

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Zodiac_Signs
{
	public partial class Form1 : Form
	{
		#region Global Variables
		Zodiac[] mySigns;
		string[] Months;
		int Day;
		int Year;
		#endregion;

		public Form1()
		{
			InitializeComponent();
			ShowStart();
		}
		public class Zodiac
		{
			private string _Solar, _Lunar;
			private int _Day, _Year;

			//Basic Constructors
			public string Solar
			{
				get { return _Solar; }
				set { _Solar = value; }
			}
			public string Lunar
			{
				get { return _Lunar; }
				set { _Lunar = value; }
			}
			public int Day
			{
				get { return _Day; }
				set { _Day = value; }
			}
			public int Year
			{
				get { return _Year; }
				set { _Year = value; }
			}
		}
		public void ShowStart()
		{
			//Hide Results
			HideResults();

			//Hide the Reset button
			this.BTN_Results.Hide();
			this.BTN_Color.Hide();

			//Show birth information
			this.LBL_Zodiac_Instructions.Show();
			this.LBL_Color_Instructions.Hide();
			this.PB_Solar.Hide();
			this.LBL_Solar_Info.Hide();
			this.LBL_SolarResult.Hide();
			this.PB_Lunar.Hide();
			this.LBL_Lunar_Info.Hide();
			this.LBL_LunarResult.Hide();
			this.LBL_Month.Show();
			this.CB_Month.Show();
			this.TB_Day.Show();
			this.TB_Year.Show();
			this.BTN_Start.Show();
		}
		public void ShowColor()
		{
			this.LBL_Color_Instructions.Show();
			this.LBL_Zodiac_Instructions.Hide();
			this.LBL_Solar.Show();
			this.CB_Solar.Show();
			this.LBL_SolarResult.Show();
			this.LBL_Lunar.Show();
			this.CB_Lunar.Show();
			this.LBL_LunarResult.Show();
			this.LBL_Day.Hide();
			this.TB_Day.Hide();
			this.LBL_Month.Hide();
			this.CB_Month.Hide();
			this.LBL_Year.Hide();
			this.TB_Year.Hide();
			this.PB_Lunar.Show();
			this.PB_Solar.Show();
			this.BTN_Color.Show();
			this.BTN_Start.Hide();
		}
		public void HideResults()
		{
			this.LBL_Solar.Hide();
			this.CB_Solar.Hide();
			this.LBL_Lunar.Hide();
			this.CB_Lunar.Hide();
			this.PB_Solar.Hide();
			this.PB_Lunar.Hide();
			this.BTN_Results.Hide();
		}
		public void ShowResults()
		{
			this.LBL_Solar_Info.Show();
			this.LBL_SolarResult.Show();
			this.CB_Solar.Hide();
			this.PB_Solar.Show();
			this.LBL_Lunar_Info.Show();
			this.CB_Lunar.Hide();
			this.PB_Lunar.Show();
			this.LBL_LunarResult.Show();
			this.BTN_Results.Show();
			this.BTN_Color.Hide();
		}

		private void BTN_About_Click(object sender, EventArgs e)
		{
			string strInfo = "Copyright 2011\nby Kelli Jo Isaak\nChinese & Western Zodiac Art:\nhttp://www.hellokids.com\n\"Solar\"Applies to the Western Zodiac Signs\n\"Lunar\"Applies to your Chinese Zodiac sign";
			string strCaption = "About this Program";
			MessageBox.Show(strInfo, strCaption, MessageBoxButtons.OK, MessageBoxIcon.Information);
		}

		private void BTN_Start_Click(object sender, EventArgs e)
		{
			ShowColor();
			//Find Western Zodiac Sign
			string strMonth = this.CB_Month.Text;
			int intDay = Convert.ToInt32(this.TB_Day.Text);

			//Find Chinese Zodiac Signs
			int intYear = Convert.ToInt32(this.TB_Year.Text);
			int intLunar = intYear % 12;

			if (strMonth == "January" & intDay >= 20 | strMonth == "February" & intDay <= 18)
			{
				this.LBL_SolarResult.Text = "Aquarius";
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Aquarius;
			}
			if (strMonth == "February" & intDay >= 19 | strMonth == "March" & intDay <= 20)
			{
				this.LBL_SolarResult.Text = "Pisces";
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Pisces;
			}
			if (strMonth == "March" & intDay >= 21 | strMonth == "April" & intDay <= 19)
			{
				this.LBL_SolarResult.Text = "Aries";
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Aries;
			}
			if (strMonth == "April" & intDay >= 20 | strMonth == "May" & intDay <= 20)
			{
				this.LBL_SolarResult.Text = "Taurus";
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Taurus;
			}
			if (strMonth == "May" & intDay >= 21 | strMonth == "June" & intDay <= 21)
			{
				this.LBL_SolarResult.Text = "Gemini";
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Gemini;
			}
			if (strMonth == "June" & intDay >= 22 | strMonth == "July" & intDay <= 22)
			{
				this.LBL_SolarResult.Text = "Cancer";
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Cancer;
			}
			if (strMonth == "July" & intDay >= 23 | strMonth == "August" & intDay <= 22)
			{
				this.LBL_SolarResult.Text = "Leo";
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Leo;
			}
			if (strMonth == "August" & intDay >= 23 | strMonth == "September" & intDay <= 22)
			{
				this.LBL_SolarResult.Text = "Virgo";
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Virgo;
			}
			if (strMonth == "September" & intDay >= 23 | strMonth == "October" & intDay <= 22)
			{
				this.LBL_SolarResult.Text = "Libra";
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Libra;
			}
			if (strMonth == "October" & intDay >= 23 | strMonth == "November" & intDay <= 21)
			{
				this.LBL_SolarResult.Text = "Scorpio";
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Scorpio;
			}
			if (strMonth == "November" & intDay >= 22 | strMonth == "December" & intDay <= 21)
			{
				this.LBL_SolarResult.Text = "Sagittarius";
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Sagittarius;
			}
			if (strMonth == "December" & intDay >= 22 | strMonth == "January" & intDay <= 19)
			{
				this.LBL_SolarResult.Text = "Capricorn";
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Capricorn;
			}

			switch (intLunar)
			{
				case 0:
					this.LBL_LunarResult.Text = "Monkey";
					this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Monkey;
					break;
				case 1:
					this.LBL_LunarResult.Text = "Rooster";
					this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Rooster;
					break;
				case 2:
					this.LBL_LunarResult.Text = "Dog";
					this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Dog;
					break;
				case 3:
					this.LBL_LunarResult.Text = "Pig";
					this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Pig;
					break;
				case 4:
					this.LBL_LunarResult.Text = "Rat";
					this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Rat;
					break;
				case 5:
					this.LBL_LunarResult.Text = "Ox";
					this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Ox;
					break;
				case 6:
					this.LBL_LunarResult.Text = "Tiger";
					this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Tiger;
					break;
				case 7:
					this.LBL_LunarResult.Text = "Rabbit";
					this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Rabbit;
					break;
				case 8:
					this.LBL_LunarResult.Text = "Dragon";
					this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Dragon;
					break;
				case 9:
					this.LBL_LunarResult.Text = "Snake";
					this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Snake;
					break;
				case 10:
					this.LBL_LunarResult.Text = "Horse";
					this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Horse;
					break;
				case 11:
					this.LBL_LunarResult.Text = "Sheep";
					this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Sheep;
					break;
			}
		}

		private void BTN_Color_Click(object sender, EventArgs e)
		{
			//Show coloring Area
			ShowColor();

			string strSolarColor = this.CB_Solar.Text;
			string strSolar = this.LBL_SolarResult.Text;
			string strLunarColor = this.CB_Lunar.Text;
			string strLunar = this.LBL_LunarResult.Text;
			this.BTN_Results.Show();
			this.BTN_Color.Hide();

			//Dog Images
			if (strLunarColor == "Default" & strLunar == "Dog")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Dog;
			if (strLunarColor == "Teal" & strLunar == "Dog")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Dog_Teal;
			if (strLunarColor == "Cyan" & strLunar == "Dog")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Dog_Cyan;
			if (strLunarColor == "Blue" & strLunar == "Dog")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Dog_Blue;
			if (strLunarColor == "Purple" & strLunar == "Dog")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Dog_Purple;
			if (strLunarColor == "Pink" & strLunar == "Dog")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Dog_Pink;
			if (strLunarColor == "Red" & strLunar == "Dog")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Dog_Red;
			if (strLunarColor == "Orange" & strLunar == "Dog")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Dog_Orange;
			if (strLunarColor == "Gold" & strLunar == "Dog")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Dog_Gold;
			if (strLunarColor == "Yellow" & strLunar == "Dog")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Dog_Yellow;
			if (strLunarColor == "Green" & strLunar == "Dog")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Dog_Green;
			if (strLunarColor == "Brown" & strLunar == "Dog")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Dog_Brown;

			//Dragon Images
			if (strLunarColor == "Default" & strLunar == "Dragon")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Dragon;
			if (strLunarColor == "Teal" & strLunar == "Dragon")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Dragon_Teal;
			if (strLunarColor == "Cyan" & strLunar == "Dragon")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Dog_Cyan;
			if (strLunarColor == "Blue" & strLunar == "Dragon")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Dragon_Blue;
			if (strLunarColor == "Purple" & strLunar == "Dragon")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Dragon_Purple;
			if (strLunarColor == "Pink" & strLunar == "Dragon")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Dragon_Pink;
			if (strLunarColor == "Red" & strLunar == "Dragon")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Dragon_Red;
			if (strLunarColor == "Orange" & strLunar == "Dragon")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Dragon_Orange;
			if (strLunarColor == "Gold" & strLunar == "Dragon")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Dragon_Gold;
			if (strLunarColor == "Yellow" & strLunar == "Dragon")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Dragon_Yellow;
			if (strLunarColor == "Green" & strLunar == "Dragon")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Dragon_Green;
			if (strLunarColor == "Brown" & strLunar == "Dragon")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Dragon_Brown;

			//Horse Images
			if (strLunarColor == "Default" & strLunar == "Horse")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Horse;
			if (strLunarColor == "Teal" & strLunar == "Horse")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Horse_Teal;
			if (strLunarColor == "Cyan" & strLunar == "Horse")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Horse_Cyan;
			if (strLunarColor == "Blue" & strLunar == "Horse")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Horse_Blue;
			if (strLunarColor == "Purple" & strLunar == "Horse")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Horse_Purple;
			if (strLunarColor == "Pink" & strLunar == "Horse")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Horse_Pink;
			if (strLunarColor == "Red" & strLunar == "Horse")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Horse_Red;
			if (strLunarColor == "Orange" & strLunar == "Horse")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Horse_Orange;
			if (strLunarColor == "Gold" & strLunar == "Horse")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Horse_Gold;
			if (strLunarColor == "Yellow" & strLunar == "Horse")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Horse_Yellow;
			if (strLunarColor == "Green" & strLunar == "Horse")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Horse_Green;
			if (strLunarColor == "Brown" & strLunar == "Horse")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Horse_Brown;

			//Monkey Images
			if (strLunarColor == "Default" & strLunar == "Monkey")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Monkey;
			if (strLunarColor == "Teal" & strLunar == "Monkey")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Monkey_Teal;
			if (strLunarColor == "Cyan" & strLunar == "Monkey")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Monkey_Cyan;
			if (strLunarColor == "Blue" & strLunar == "Monkey")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Monkey_Blue;
			if (strLunarColor == "Purple" & strLunar == "Monkey")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Monkey_Purple;
			if (strLunarColor == "Pink" & strLunar == "Monkey")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Monkey_Pink;
			if (strLunarColor == "Red" & strLunar == "Monkey")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Monkey_Red;
			if (strLunarColor == "Orange" & strLunar == "Monkey")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Monkey_Orange;
			if (strLunarColor == "Gold" & strLunar == "Monkey")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Monkey_Gold;
			if (strLunarColor == "Yellow" & strLunar == "Monkey")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Monkey_Yellow;
			if (strLunarColor == "Green" & strLunar == "Monkey")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Monkey_Green;

			//Ox Images
			if (strLunarColor == "Default" & strLunar == "Ox")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Ox;
			if (strLunarColor == "Teal" & strLunar == "Ox")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Ox_Teal;
			if (strLunarColor == "Cyan" & strLunar == "Ox")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Ox_Cyan;
			if (strLunarColor == "Blue" & strLunar == "Ox")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Ox_Blue;
			if (strLunarColor == "Purple" & strLunar == "Ox")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Ox_Purple;
			if (strLunarColor == "Pink" & strLunar == "Ox")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Ox_Pink;
			if (strLunarColor == "Red" & strLunar == "Ox")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Ox_Red;
			if (strLunarColor == "Orange" & strLunar == "Ox")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Ox_Orange;
			if (strLunarColor == "Gold" & strLunar == "Ox")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Ox_Gold;
			if (strLunarColor == "Yellow" & strLunar == "Ox")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Ox_Yellow;
			if (strLunarColor == "Green" & strLunar == "Ox")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Ox_Green;
			if (strLunarColor == "Brown" & strLunar == "Ox")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Ox_Brown;

			//Pig Images
			if (strLunarColor == "Default" & strLunar == "Pig")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Pig;
			if (strLunarColor == "Teal" & strLunar == "Pig")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Pig_Teal;
			if (strLunarColor == "Cyan" & strLunar == "Pig")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Pig_Cyan;
			if (strLunarColor == "Blue" & strLunar == "Pig")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Pig_Blue;
			if (strLunarColor == "Purple" & strLunar == "Pig")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Pig_Purple;
			if (strLunarColor == "Pink" & strLunar == "Pig")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Pig_Pink;
			if (strLunarColor == "Red" & strLunar == "Pig")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Pig_Red;
			if (strLunarColor == "Orange" & strLunar == "Pig")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Pig_Orange;
			if (strLunarColor == "Gold" & strLunar == "Pig")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Pig_Gold;
			if (strLunarColor == "Yellow" & strLunar == "Pig")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Pig_Yellow;
			if (strLunarColor == "Green" & strLunar == "Pig")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Pig_Green;
			if (strLunarColor == "Brown" & strLunar == "Pig")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Pig_Brown;

			//Rabbit Images
			if (strLunarColor == "Default" & strLunar == "Rabbit")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Rabbit;
			if (strLunarColor == "Teal" & strLunar == "Rabbit")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Rabbit_Teal;
			if (strLunarColor == "Cyan" & strLunar == "Rabbit")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Rabbit_Cyan;
			if (strLunarColor == "Blue" & strLunar == "Rabbit")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Rabbit_Blue;
			if (strLunarColor == "Purple" & strLunar == "Rabbit")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Rabbit_Purple;
			if (strLunarColor == "Pink" & strLunar == "Rabbit")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Rabbit_Pink;
			if (strLunarColor == "Red" & strLunar == "Rabbit")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Rabbit_Red;
			if (strLunarColor == "Orange" & strLunar == "Rabbit")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Rabbit_Orange;
			if (strLunarColor == "Gold" & strLunar == "Rabbit")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Rabbit_Gold;
			if (strLunarColor == "Yellow" & strLunar == "Rabbit")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Rabbit_Yellow;
			if (strLunarColor == "Green" & strLunar == "Rabbit")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Rabbit_Green;
			if (strLunarColor == "Brown" & strLunar == "Rabbit")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Rabbit_Brown;

			//Rat Images
			if (strLunarColor == "Default" & strLunar == "Rat")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Rat;
			if (strLunarColor == "Teal" & strLunar == "Rat")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Rat_Teal;
			if (strLunarColor == "Cyan" & strLunar == "Rat")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Rat_Cyan;
			if (strLunarColor == "Blue" & strLunar == "Rat")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Rat_Blue;
			if (strLunarColor == "Purple" & strLunar == "Rat")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Rat_Purple;
			if (strLunarColor == "Pink" & strLunar == "Rat")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Rat_Pink;
			if (strLunarColor == "Red" & strLunar == "Rat")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Rat_Red;
			if (strLunarColor == "Orange" & strLunar == "Rat")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Rat_Orange;
			if (strLunarColor == "Gold" & strLunar == "Rat")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Rat_Gold;
			if (strLunarColor == "Yellow" & strLunar == "Rat")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Rat_Yellow;
			if (strLunarColor == "Green" & strLunar == "Rat")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Rat_Green;
			if (strLunarColor == "Brown" & strLunar == "Rat")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Rat_Brown;

			//Rooster Images
			if (strLunarColor == "Default" & strLunar == "Rooster")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Rooster;
			if (strLunarColor == "Teal" & strLunar == "Rooster")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Rooster_Teal;
			if (strLunarColor == "Cyan" & strLunar == "Rooster")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Rooster_Cyan;
			if (strLunarColor == "Blue" & strLunar == "Rooster")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Rooster_Blue;
			if (strLunarColor == "Purple" & strLunar == "Rooster")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Rooster_Purple;
			if (strLunarColor == "Pink" & strLunar == "Rooster")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Rooster_Pink;
			if (strLunarColor == "Red" & strLunar == "Rooster")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Rooster_Red;
			if (strLunarColor == "Orange" & strLunar == "Rooster")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Rooster_Orange;
			if (strLunarColor == "Gold" & strLunar == "Rooster")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Rooster_Gold;
			if (strLunarColor == "Yellow" & strLunar == "Rooster")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Rooster_Yellow;
			if (strLunarColor == "Green" & strLunar == "Rooster")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Rooster_Green;
			if (strLunarColor == "Brown" & strLunar == "Rooster")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Rooster_Brown;

			//Sheep Images
			if (strLunarColor == "Default" & strLunar == "Sheep")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Sheep;
			if (strLunarColor == "Teal" & strLunar == "Sheep")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Sheep_Teal;
			if (strLunarColor == "Cyan" & strLunar == "Sheep")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Sheep_Cyan;
			if (strLunarColor == "Blue" & strLunar == "Sheep")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Sheep_Blue;
			if (strLunarColor == "Purple" & strLunar == "Sheep")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Sheep_Purple;
			if (strLunarColor == "Pink" & strLunar == "Sheep")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Sheep_Pink;
			if (strLunarColor == "Red" & strLunar == "Sheep")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Sheep_Red;
			if (strLunarColor == "Orange" & strLunar == "Sheep")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Sheep_Orange;
			if (strLunarColor == "Gold" & strLunar == "Sheep")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Sheep_Gold;
			if (strLunarColor == "Yellow" & strLunar == "Sheep")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Sheep_Yellow;
			if (strLunarColor == "Green" & strLunar == "Sheep")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Sheep_Green;
			if (strLunarColor == "Brown" & strLunar == "Sheep")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Sheep_Brown;

			//Snake Images
			if (strLunarColor == "Default" & strLunar == "Snake")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Snake;
			if (strLunarColor == "Teal" & strLunar == "Snake")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Snake_Teal;
			if (strLunarColor == "Cyan" & strLunar == "Snake")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Snake_Cyan;
			if (strLunarColor == "Blue" & strLunar == "Snake")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Snake_Blue;
			if (strLunarColor == "Purple" & strLunar == "Snake")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Snake_Purple;
			if (strLunarColor == "Pink" & strLunar == "Snake")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Snake_Pink;
			if (strLunarColor == "Red" & strLunar == "Snake")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Snake_Red;
			if (strLunarColor == "Orange" & strLunar == "Snake")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Snake_Orange;
			if (strLunarColor == "Gold" & strLunar == "Snake")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Snake_Gold;
			if (strLunarColor == "Yellow" & strLunar == "Snake")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Snake_Yellow;
			if (strLunarColor == "Green" & strLunar == "Snake")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Snake_Green;
			if (strLunarColor == "Brown" & strLunar == "Snake")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Snake_Brown;

			//Tiger Images
			if (strLunarColor == "Default" & strLunar == "Tiger")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Tiger;
			if (strLunarColor == "Teal" & strLunar == "Tiger")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Tiger_Teal;
			if (strLunarColor == "Cyan" & strLunar == "Tiger")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Tiger_Cyan;
			if (strLunarColor == "Blue" & strLunar == "Tiger")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Tiger_Blue;
			if (strLunarColor == "Purple" & strLunar == "Tiger")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Tiger_Purple;
			if (strLunarColor == "Pink" & strLunar == "Tiger")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Tiger_Pink;
			if (strLunarColor == "Red" & strLunar == "Tiger")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Tiger_Red;
			if (strLunarColor == "Orange" & strLunar == "Tiger")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Tiger_Orange;
			if (strLunarColor == "Gold" & strLunar == "Tiger")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Tiger_Gold;
			if (strLunarColor == "Yellow" & strLunar == "Tiger")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Tiger_Yellow;
			if (strLunarColor == "Green" & strLunar == "Tiger")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Tiger_Green;
			if (strLunarColor == "Brown" & strLunar == "Tiger")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Tiger_Brown;

			//Western Zodiac

			//Aquarius Images
			if (strSolarColor == "Default" & strSolar == "Aquarius")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Aquarius;
			if (strLunarColor == "Teal" & strLunar == "Aquarius")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Aquarius_Teal;
			if (strSolarColor == "Cyan" & strLunar == "Aquarius")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Aquarius_Cyan;
			if (strSolarColor == "Blue" & strLunar == "Aquarius")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Aquarius_Blue;
			if (strSolarColor == "Purple" & strLunar == "Aquarius")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Aquarius_Purple;
			if (strSolarColor == "Pink" & strLunar == "Aquarius")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Aquarius_Pink;
			if (strSolarColor == "Red" & strLunar == "Aquarius")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Aquarius_Red;
			if (strSolarColor == "Orange" & strLunar == "Aquarius")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Aquarius_Orange;
			if (strSolarColor == "Gold" & strLunar == "Aquarius")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Aquarius_Gold;
			if (strSolarColor == "Yellow" & strLunar == "Aquarius")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Aquarius_Yellow;
			if (strSolarColor == "Green" & strLunar == "Aquarius")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Aquarius_Green;
			if (strSolarColor == "Brown" & strLunar == "Aquarius")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Aquarius_Brown;

			//Aries Images
			if (strSolarColor == "Default" & strLunar == "Aries")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Aries;
			if (strSolarColor == "Teal" & strLunar == "Aries")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Aries_Teal;
			if (strSolarColor == "Cyan" & strLunar == "Aries")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Aries_Cyan;
			if (strSolarColor == "Blue" & strLunar == "Aries")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Aries_Blue;
			if (strSolarColor == "Purple" & strLunar == "Aries")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Aries_Purple;
			if (strSolarColor == "Pink" & strLunar == "Aries")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Aries_Pink;
			if (strSolarColor == "Red" & strLunar == "Aries")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Aries_Red;
			if (strSolarColor == "Orange" & strLunar == "Aries")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Aries_Orange;
			if (strSolarColor == "Gold" & strLunar == "Aries")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Aries_Gold;
			if (strSolarColor == "Yellow" & strLunar == "Aries")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Aries_Yellow;
			if (strSolarColor == "Green" & strLunar == "Aries")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Aries_Green;
			if (strSolarColor == "Brown" & strLunar == "Aries")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Aries_Brown;

			//Cancer Images
			if (strSolarColor == "Default" & strLunar == "Cancer")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Cancer;
			if (strSolarColor == "Teal" & strLunar == "Cancer")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Cancer_Teal;
			if (strSolarColor == "Cyan" & strLunar == "Cancer")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Cancer_Cyan;
			if (strSolarColor == "Blue" & strLunar == "Cancer")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Cancer_Blue;
			if (strSolarColor == "Purple" & strLunar == "Cancer")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Cancer_Purple;
			if (strSolarColor == "Pink" & strLunar == "Cancer")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Cancer_Pink;
			if (strSolarColor == "Red" & strLunar == "Cancer")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Cancer_Red;
			if (strSolarColor == "Orange" & strLunar == "Cancer")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Cancer_Orange;
			if (strSolarColor == "Gold" & strLunar == "Cancer")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Cancer_Gold;
			if (strSolarColor == "Yellow" & strLunar == "Cancer")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Cancer_Yellow;
			if (strSolarColor == "Green" & strLunar == "Cancer")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Cancer_Green;
			if (strSolarColor == "Brown" & strLunar == "Cancer")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Cancer_Brown;

			//Capricorn Images
			if (strSolarColor == "Default" & strLunar == "Capricorn")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Capricorn;
			if (strSolarColor == "Teal" & strLunar == "Capricorn")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Capricorn_Teal;
			if (strSolarColor == "Cyan" & strLunar == "Capricorn")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Capricorn_Cyan;
			if (strSolarColor == "Blue" & strLunar == "Capricorn")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Capricorn_Blue;
			if (strSolarColor == "Purple" & strLunar == "Capricorn")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Capricorn_Purple;
			if (strSolarColor == "Pink" & strLunar == "Capricorn")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Capricorn_Pink;
			if (strSolarColor == "Red" & strLunar == "Capricorn")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Capricorn_Red;
			if (strSolarColor == "Orange" & strLunar == "Capricorn")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Capricorn_Orange;
			if (strSolarColor == "Gold" & strLunar == "Capricorn")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Capricorn_Gold;
			if (strSolarColor == "Yellow" & strLunar == "Capricorn")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Capricorn_Yellow;
			if (strSolarColor == "Green" & strLunar == "Capricorn")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Capricorn_Green;
			if (strSolarColor == "Brown" & strLunar == "Capricorn")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Capricorn_Brown;

			//Gemini Images
			if (strSolarColor == "Default" & strLunar == "Gemini")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Gemini;
			if (strSolarColor == "Teal" & strLunar == "Gemini")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Gemini_Teal;
			if (strSolarColor == "Cyan" & strLunar == "Gemini")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Gemini_Cyan;
			if (strSolarColor == "Blue" & strLunar == "Gemini")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Gemini_Blue;
			if (strSolarColor == "Purple" & strLunar == "Gemini")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Gemini_Purple;
			if (strSolarColor == "Pink" & strLunar == "Gemini")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Gemini_Pink;
			if (strSolarColor == "Red" & strLunar == "Gemini")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Gemini_Red;
			if (strSolarColor == "Orange" & strLunar == "Gemini")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Gemini_Orange;
			if (strSolarColor == "Gold" & strLunar == "Gemini")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Gemini_Gold;
			if (strSolarColor == "Yellow" & strLunar == "Gemini")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Gemini_Yellow;
			if (strSolarColor == "Green" & strLunar == "Gemini")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Gemini_Green;
			if (strSolarColor == "Brown" & strLunar == "Gemini")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Gemini_Brown;

			//Leo Images
			if (strSolarColor == "Default" & strLunar == "Leo")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Leo;
			if (strSolarColor == "Teal" & strLunar == "Leo")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Leo_Teal;
			if (strSolarColor == "Cyan" & strLunar == "Leo")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Leo_Cyan;
			if (strSolarColor == "Blue" & strLunar == "Leo")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Leo_Blue;
			if (strSolarColor == "Purple" & strLunar == "Leo")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Leo_Purple;
			if (strSolarColor == "Pink" & strLunar == "Leo")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Leo_Pink;
			if (strSolarColor == "Red" & strLunar == "Leo")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Leo_Red;
			if (strSolarColor == "Orange" & strLunar == "Leo")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Leo_Orange;
			if (strSolarColor == "Gold" & strLunar == "Leo")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Leo_Gold;
			if (strSolarColor == "Yellow" & strLunar == "Leo")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Leo_Yellow;
			if (strSolarColor == "Green" & strLunar == "Leo")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Leo_Green;
			if (strSolarColor == "Brown" & strLunar == "Leo")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Leo_Brown;

			//Libra Images
			if (strSolarColor == "Default" & strLunar == "Libra")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Libra;
			if (strSolarColor == "Teal" & strLunar == "Libra")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Libra_Teal;
			if (strSolarColor == "Cyan" & strLunar == "Libra")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Libra_Cyan;
			if (strSolarColor == "Blue" & strLunar == "Libra")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Libra_Blue;
			if (strSolarColor == "Purple" & strLunar == "Libra")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Libra_Purple;
			if (strSolarColor == "Pink" & strLunar == "Libra")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Libra_Pink;
			if (strSolarColor == "Red" & strLunar == "Libra")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Libra_Red;
			if (strSolarColor == "Orange" & strLunar == "Libra")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Libra_Orange;
			if (strSolarColor == "Gold" & strLunar == "Libra")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Libra_Gold;
			if (strSolarColor == "Yellow" & strLunar == "Libra")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Libra_Yellow;
			if (strSolarColor == "Green" & strLunar == "Libra")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Libra_Green;
			if (strSolarColor == "Brown" & strLunar == "Libra")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Libra_Brown;

			//Pisces Images
			if (strSolarColor == "Default" & strLunar == "Pisces")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Pisces;
			if (strSolarColor == "Teal" & strLunar == "Pisces")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Pisces_Teal;
			if (strSolarColor == "Cyan" & strLunar == "Pisces")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Pisces_Cyan;
			if (strSolarColor == "Blue" & strLunar == "Pisces")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Pisces_Blue;
			if (strSolarColor == "Purple" & strLunar == "Pisces")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Pisces_Purple;
			if (strSolarColor == "Pink" & strLunar == "Pisces")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Pisces_Pink;
			if (strSolarColor == "Red" & strLunar == "Pisces")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Pisces_Red;
			if (strSolarColor == "Orange" & strLunar == "Pisces")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Pisces_Orange;
			if (strSolarColor == "Gold" & strLunar == "Pisces")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Pisces_Gold;
			if (strSolarColor == "Yellow" & strLunar == "Pisces")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Pisces_Yellow;
			if (strSolarColor == "Green" & strLunar == "Pisces")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Pisces_Green;
			if (strSolarColor == "Brown" & strLunar == "Pisces")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Pisces_Brown;

			//Sagittarius Images
			if (strSolarColor == "Default" & strLunar == "Sagittarius")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Sagittarius;
			if (strSolarColor == "Teal" & strLunar == "Sagittarius")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Sagittarius_Teal;
			if (strSolarColor == "Cyan" & strLunar == "Sagittarius")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Sagittarius_Cyan;
			if (strSolarColor == "Blue" & strLunar == "Sagittarius")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Sagittarius_Blue;
			if (strSolarColor == "Purple" & strLunar == "Sagittarius")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Sagittarius_Purple;
			if (strSolarColor == "Pink" & strLunar == "Sagittarius")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Sagittarius_Pink;
			if (strSolarColor == "Red" & strLunar == "Sagittarius")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Sagittarius_Red;
			if (strSolarColor == "Orange" & strLunar == "Sagittarius")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Sagittarius_Orange;
			if (strSolarColor == "Gold" & strLunar == "Sagittarius")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Sagittarius_Gold;
			if (strSolarColor == "Yellow" & strLunar == "Sagittarius")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Sagittarius_Yellow;
			if (strSolarColor == "Green" & strLunar == "Sagittarius")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Sagittarius_Green;
			if (strSolarColor == "Brown" & strLunar == "Sagittarius")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Sagittarius_Brown;

			//Scorpio Images
			if (strSolarColor == "Default" & strLunar == "Scorpio")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Scorpio;
			if (strSolarColor == "Teal" & strLunar == "Scorpio")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Scorpio_Teal;
			if (strSolarColor == "Cyan" & strLunar == "Scorpio")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Scorpio_Cyan;
			if (strSolarColor == "Blue" & strLunar == "Scorpio")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Scorpio_Blue;
			if (strSolarColor == "Purple" & strLunar == "Scorpio")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Scorpio_Purple;
			if (strSolarColor == "Pink" & strLunar == "Scorpio")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Scorpio_Pink;
			if (strSolarColor == "Red" & strLunar == "Scorpio")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Scorpio_Red;
			if (strSolarColor == "Orange" & strLunar == "Scorpio")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Scorpio_Orange;
			if (strSolarColor == "Gold" & strLunar == "Scorpio")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Scorpio_Gold;
			if (strSolarColor == "Yellow" & strLunar == "Scorpio")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Scorpio_Yellow;
			if (strSolarColor == "Green" & strLunar == "Scorpio")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Scorpio_Green;
			if (strSolarColor == "Brown" & strLunar == "Scorpio")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Scorpio_Brown;

			//Taurus Images
			if (strSolarColor == "Default" & strLunar == "Taurus")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Taurus;
			if (strSolarColor == "Teal" & strLunar == "Taurus")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Taurus_Teal;
			if (strSolarColor == "Cyan" & strLunar == "Taurus")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Taurus_Cyan;
			if (strSolarColor == "Blue" & strLunar == "Taurus")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Taurus_Blue;
			if (strSolarColor == "Purple" & strLunar == "Taurus")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Taurus_Purple;
			if (strSolarColor == "Pink" & strLunar == "Taurus")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Taurus_Pink;
			if (strSolarColor == "Red" & strLunar == "Taurus")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Taurus_Red;
			if (strSolarColor == "Orange" & strLunar == "Taurus")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Taurus_Orange;
			if (strSolarColor == "Gold" & strLunar == "Taurus")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Taurus_Gold;
			if (strSolarColor == "Yellow" & strLunar == "Taurus")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Taurus_Yellow;
			if (strSolarColor == "Green" & strLunar == "Taurus")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Taurus_Green;
			if (strSolarColor == "Brown" & strLunar == "Taurus")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Taurus_Brown;

			//Virgo Images
			if (strSolarColor == "Default" & strLunar == "Virgo")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Virgo;
			if (strSolarColor == "Teal" & strLunar == "Virgo")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Virgo_Teal;
			if (strSolarColor == "Cyan" & strLunar == "Virgo")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Virgo_Cyan;
			if (strSolarColor == "Blue" & strLunar == "Virgo")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Virgo_Blue;
			if (strSolarColor == "Purple" & strLunar == "Virgo")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Virgo_Purple;
			if (strSolarColor == "Pink" & strLunar == "Virgo")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Virgo_Pink;
			if (strSolarColor == "Red" & strLunar == "Virgo")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Virgo_Red;
			if (strSolarColor == "Orange" & strLunar == "Virgo")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Virgo_Orange;
			if (strSolarColor == "Gold" & strLunar == "Virgo")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Virgo_Gold;
			if (strSolarColor == "Yellow" & strLunar == "Virgo")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Virgo_Yellow;
			if (strSolarColor == "Green" & strLunar == "Virgo")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Virgo_Green;
			if (strSolarColor == "Brown" & strLunar == "Virgo")
				this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Virgo_Brown;

		}

		private void BTN_Results_Click(object sender, EventArgs e)
		{

		}
	}
}




Is This A Good Question/Topic? 0
  • +

Replies To: Linking/Merging C# Projects & Changing Colors

#2 modi123_1   User is online

  • Suitor #2
  • member icon



Reputation: 14174
  • View blog
  • Posts: 56,776
  • Joined: 12-June 08

Re: Linking/Merging C# Projects & Changing Colors

Posted 05 April 2011 - 10:42 AM

The typical way is if you have a class or a form or what not you really like - compile it as a 'class library'. This makes a dll. Then you can add that as a reference to each project you feel needs it. Then create instances of your class or form and bam!

you would right click on the project, to to properties, and 'application' tab. From there change 'application type'.

Now I'll warn you - hopefully you got "object orientated programming" down. So you have public methods available to be used, called, and interacted with. Basically make your dll a black box with enough public methods open to interact with it!

Regarding color changes you would probably have to look into manipulating the brushes on a preset area.

http://msdn.microsof...7(v=VS.71).aspx
Was This Post Helpful? 1
  • +
  • -

#3 tlhIn`toq   User is offline

  • Xamarin Cert. Dev.
  • member icon

Reputation: 6535
  • View blog
  • Posts: 14,450
  • Joined: 02-June 10

Re: Linking/Merging C# Projects & Changing Colors

Posted 05 April 2011 - 10:46 AM

OMG talk about a brute force approach. I would never have done this...
if (strSolarColor == "Gold" & strLunar == "Aquarius")
                this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Aquarius_Gold;
            if (strSolarColor == "Yellow" & strLunar == "Aquarius")
                this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Aquarius_Yellow;
            if (strSolarColor == "Green" & strLunar == "Aquarius")
                this.PB_Solar.Image = global::Zodiac_Signs.Properties.Resources.Aquarius_Green;
That would have made me a clock-tower-sniper by the end of the day.

I think I would have taken an approach where I either programmatically drew the symbols in the given colors, or programmatically shifted the colors of a base image. That way I could have done something like this

Image NewSymbol = RepaintSymbol(Symbols.Aquarius, Color.Green);


Using GDI++ takes a little getting used to, but you could have created the symbols at the exact size you wanted them so there would be no scaling artifacts.

Or by using a base image with a radical color like HotPink you could have scanned the image for all the HotPink pixels and replaced them with the specified Color.Green.


I have no idea what any of that horoscope stuff has to do with the original question.

Quote

How would I merge a character creator program with any other program? For example, let's say I've already created this character creator and am now creating a blackjack game. I want the player to be able to create their own avatar. My first thought is, why invent the wheel twice? Why not make the custom character program easily accessible to other programs? Does anyone have any idea how I'd do that?


You do realize that a Solution in Visual Studio can have multiple projects, right? And that you can include an existing project in a new solution, right?

Maybe your character creator is best used as a plug-in instead of a stand-alone application. Then you can use it in each new project. Maybe it could be a rather complex UserControl. And that way you just have to drop it on a form or TabControl. These two tutorials do a lot with custom UserControls and the re-use of components. Maybe they can help.

Bulding an application - Part 1
Building an application - Part 2
Was This Post Helpful? 0
  • +
  • -

#4 Blind_Geek81   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 11
  • Joined: 28-February 11

Re: Linking/Merging C# Projects & Changing Colors

Posted 06 April 2011 - 08:28 AM

View Postmodi123_1, on 05 April 2011 - 10:42 AM, said:

Regarding color changes you would probably have to look into manipulating the brushes on a preset area.

http://msdn.microsof...7(v=VS.71).aspx


This article was very helpful yesterday! Thanks so much :D Now, how would I implement the colors?

This is no problem, especially in VS 2010:
[quote]
			//Dog Images
			if (strLunarColor == "Default" & strLunar == "Dog")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Dog;
			if (strLunarColor == "Teal" & strLunar == "Dog")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Dog_Teal;
			if (strLunarColor == "Cyan" & strLunar == "Dog")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Dog_Cyan;
			if (strLunarColor == "Blue" & strLunar == "Dog")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Dog_Blue;
			if (strLunarColor == "Purple" & strLunar == "Dog")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Dog_Purple;
			if (strLunarColor == "Pink" & strLunar == "Dog")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Dog_Pink;
			if (strLunarColor == "Red" & strLunar == "Dog")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Dog_Red;
			if (strLunarColor == "Orange" & strLunar == "Dog")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Dog_Orange;
			if (strLunarColor == "Gold" & strLunar == "Dog")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Dog_Gold;
			if (strLunarColor == "Yellow" & strLunar == "Dog")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Dog_Yellow;
			if (strLunarColor == "Green" & strLunar == "Dog")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Dog_Green;
			if (strLunarColor == "Brown" & strLunar == "Dog")
				this.PB_Lunar.Image = global::Zodiac_Signs.Properties.Resources.Dog_Brown;

[/quote]

All I did was copy/paste my statements, selected the block, and did a quick find/replace that only worked on the selected block. It took forever, but it was almost worth it in the end.

It would be great to get rid of most of the pictures and have brushes color the black and white pictures (if you look at the code I posted yesterday, the black and white pictures do not have an _Color attached to it) with a semi-transparent color. Would I declare the brushes in place of the image location, declare them globally, or is there an even better way?

			//Brush declared in the If statement
			if (strLunarColor == "Teal" & strLunar == "Rabbit")
				this.PB_Lunar.Image = SolidBrush = TealBrush = new SolidBrush(Color.FromArgb(75, 0, 255, 153);


Was This Post Helpful? 0
  • +
  • -

#5 modi123_1   User is online

  • Suitor #2
  • member icon



Reputation: 14174
  • View blog
  • Posts: 56,776
  • Joined: 12-June 08

Re: Linking/Merging C# Projects & Changing Colors

Posted 06 April 2011 - 11:42 AM

Quote

Now, how would I implement the colors?

What do you mean by this? A color picker? Making it actually change color?

Poke around first, and see where it takes you. Experiment with a solution that works best for your project's goals.
Was This Post Helpful? 0
  • +
  • -

#6 tlhIn`toq   User is offline

  • Xamarin Cert. Dev.
  • member icon

Reputation: 6535
  • View blog
  • Posts: 14,450
  • Joined: 02-June 10

Re: Linking/Merging C# Projects & Changing Colors

Posted 06 April 2011 - 12:23 PM

View PostBlind_Geek81, on 06 April 2011 - 09:28 AM, said:

It would be great to get rid of most of the pictures and have brushes color the black and white pictures (if you look at the code I posted yesterday, the black and white pictures do not have an _Color attached to it) with a semi-transparent color. Would I declare the brushes in place of the image location, declare them globally, or is there an even better way?


What I described had nothing to do with brushes unless you are drawing the graphic from scratch on a blank bitmap. I think that would work well for simple things like zodiac symbols.

But to re-color an existing bitmap you probably wouldn't start with black and white.
As I said, I would make a base graphic where the area to be changed would be designated by an odd color such as Color.HotPink. Then your re-color method would scan through the bitmap, and replace each HotPink pixel with the designated color such as Color.Blue.

Of course if your intention is to make Black and white into Blue and yellow its the same principal: Loop through the bitmap and replace all the black with blue and all the white with yellow.

This post has been edited by tlhIn`toq: 06 April 2011 - 12:24 PM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1