Esempio n. 1
0
		private void buttonChangeColor_Click(object sender, EventArgs e)
		{
			using (var dlg = new ColorDialog())
			{
				dlg.AllowFullOpen = true;
				dlg.AnyColor = true;
				dlg.FullOpen = true;
				dlg.Color = spriteback;

				var result = dlg.ShowHawkDialog();
				if (result == DialogResult.OK)
				{
					// force full opaque
					spriteback = Color.FromArgb(255, dlg.Color);
				}
			}
		}
Esempio n. 2
0
		private void buttonChangeColor_Click(object sender, EventArgs e)
		{
			using (var dlg = new ColorDialog())
			{
				dlg.AllowFullOpen = true;
				dlg.AnyColor = true;
				dlg.FullOpen = true;
				dlg.Color = Spriteback;

				var result = dlg.ShowHawkDialog();
				if (result == DialogResult.OK)
				{
					Spriteback = dlg.Color;
				}
			}
		}