private void CmdRollDiceSkiasharp_Click(object sender, EventArgs e) { Sorteio Sort = new Sorteio(); string strNum = Sort.Sorteia(); ClsDiceSkia.DesenhaDadoCompleto(ref pcbDiceSkiasharp, Convert.ToByte(strNum), "#0000FF", "#000000", CmdRollDiceSkiasharp.Location.X + 25, CmdRollDiceSkiasharp.Location.Y - 130, 12); LblNumeroSkia.Text = strNum; }
private void Cmd7Skia_Click(object sender, EventArgs e) { ClsDiceSkia.DesenhaDadoCompleto(ref pcbDiceSkiasharp, 7, ClsDiceSkia.ColorToHex(Color.Red), ClsDiceSkia.ColorToHex(Color.DarkOliveGreen), CmdRollDiceSkiasharp.Location.X + 25, CmdRollDiceSkiasharp.Location.Y - 130, 12); LblNumeroSkia.Text = "7"; }
private void Cmd5Skia_Click(object sender, EventArgs e) { ClsDiceSkia.DesenhaDadoCompleto(ref pcbDiceSkiasharp, 5, ClsDiceSkia.ColorToHex(Color.OrangeRed), ClsDiceSkia.ColorToHex(Color.GreenYellow), CmdRollDiceSkiasharp.Location.X + 25, CmdRollDiceSkiasharp.Location.Y - 130, 12); LblNumeroSkia.Text = "5"; }
private void Cmd4Skia_Click(object sender, EventArgs e) { ClsDiceSkia.DesenhaDadoCompleto(ref pcbDiceSkiasharp, 4, ClsDiceSkia.ColorToHex(Color.Violet), ClsDiceSkia.ColorToHex(Color.DarkGoldenrod), CmdRollDiceSkiasharp.Location.X + 25, CmdRollDiceSkiasharp.Location.Y - 130, 12); LblNumeroSkia.Text = "4"; }
private void Cmd3Skia_Click(object sender, EventArgs e) { ClsDiceSkia.DesenhaDadoCompleto(ref pcbDiceSkiasharp, 3, ClsDiceSkia.ColorToHex(Color.Blue), ClsDiceSkia.ColorToHex(Color.BlueViolet), CmdRollDiceSkiasharp.Location.X + 25, CmdRollDiceSkiasharp.Location.Y - 130, 12); LblNumeroSkia.Text = "3"; }
private void Cmd2Skia_Click(object sender, EventArgs e) { ClsDiceSkia.DesenhaDadoCompleto(ref pcbDiceSkiasharp, 2, "#000000", "#FF00FF", CmdRollDiceSkiasharp.Location.X + 25, CmdRollDiceSkiasharp.Location.Y - 130, 12); LblNumeroSkia.Text = "2"; }