private void mi_Click(object sender, EventArgs e)
        {
            HueMenuItem mi = sender as HueMenuItem;

            if (mi != null)
            {
                m_SelectedHue = Convert.ToInt32(mi.Text);
                OnHueClicked(new EventArgs());
            }
        }
Beispiel #2
0
		private void MakeMenu()
		{
			foreach ( int i in m_List.List )
			{
				HueMenuItem mi = null;

				if ( i == 0 )
					mi = new HueMenuItem( i.ToString(), null );
				else
					mi = new HueMenuItem( i.ToString(), Pandora.Hues[ i ].ColorTable );

				MenuItems.Add( mi );

				mi.Click += new EventHandler(mi_Click);
			}
		}
        private void MakeMenu()
        {
            foreach (int i in m_List.List)
            {
                HueMenuItem mi = null;

                if (i == 0)
                {
                    mi = new HueMenuItem(i.ToString(), null);
                }
                else
                {
                    mi = new HueMenuItem(i.ToString(), Pandora.Hues[i].ColorTable);
                }

                MenuItems.Add(mi);

                mi.Click += new EventHandler(mi_Click);
            }
        }