当前位置: 首页 > news >正文

罗湖区住房和建设网站wordpress自适应菜单

罗湖区住房和建设网站,wordpress自适应菜单,英文seo如何优化,上往建站场景 我需要做一个c#桌面窗口软件#xff0c;但是我曾经都是专职于java开发#xff0c;但是java对windows并不是特别友好(awt除外)#xff0c;于是必须需要掌握c#桌面编程#xff0c;所以我需要手动做一个小游戏#xff0c;来学习c#的一些基本桌面应用的知识。 开始 这…场景 我需要做一个c#桌面窗口软件但是我曾经都是专职于java开发但是java对windows并不是特别友好(awt除外)于是必须需要掌握c#桌面编程所以我需要手动做一个小游戏来学习c#的一些基本桌面应用的知识。 开始 这是一个连连看的小游戏 namespace game {public partial class Form1 : Form{// Use this Random object to choose random icons for the squaresRandom random new Random();// Each of these letters is an interesting icon// in the Webdings font,// and each icon appears twice in this listListstring icons new Liststring(){!, !, N, N, ,, ,, k, k,b, b, v, v, w, w, z, z};// firstClicked points to the first Label control // that the player clicks, but it will be null // if the player hasnt clicked a label yetLabel firstClicked null;// secondClicked points to the second Label control // that the player clicksLabel secondClicked null;/// summary/// Assign each icon from the list of icons to a random square/// /summaryprivate void AssignIconsToSquares(){// The TableLayoutPanel has 16 labels,// and the icon list has 16 icons,// so an icon is pulled at random from the list// and added to each labelforeach (Control control in tableLayoutPanel1.Controls){Label iconLabel control as Label;if (iconLabel ! null){int randomNumber random.Next(icons.Count);iconLabel.Text icons[randomNumber];iconLabel.ForeColor iconLabel.BackColor;icons.RemoveAt(randomNumber);}}}public Form1(){InitializeComponent();AssignIconsToSquares();}private void Form1_Load(object sender, EventArgs e){}/// summary/// Every labels Click event is handled by this event handler/// /summary/// param namesenderThe label that was clicked/param/// param namee/paramprivate void label1_Click(object sender, EventArgs e){// The timer is only on after two non-matching // icons have been shown to the player, // so ignore any clicks if the timer is runningif (timer1.Enabled true)return;Label clickedLabel sender as Label;if (clickedLabel ! null){// If the clicked label is black, the player clicked// an icon thats already been revealed --// ignore the clickif (clickedLabel.ForeColor Color.Black)return;// If firstClicked is null, this is the first icon// in the pair that the player clicked, // so set firstClicked to the label that the player // clicked, change its color to black, and returnif (firstClicked null){firstClicked clickedLabel;firstClicked.ForeColor Color.Black;return;}// Check to see if the player wonCheckForWinner();// If the player gets this far, the timer isnt// running and firstClicked isnt null,// so this must be the second icon the player clicked// Set its color to blacksecondClicked clickedLabel;secondClicked.ForeColor Color.Black;// If the player clicked two matching icons, keep them // black and reset firstClicked and secondClicked // so the player can click another iconif (firstClicked.Text secondClicked.Text){firstClicked null;secondClicked null;return;}// If the player gets this far, the player // clicked two different icons, so start the // timer (which will wait three quarters of // a second, and then hide the icons)timer1.Start();CheckForWinner();}}private void timer1_Tick(object sender, EventArgs e){// Stop the timertimer1.Stop();// Hide both iconsfirstClicked.ForeColor firstClicked.BackColor;secondClicked.ForeColor secondClicked.BackColor;// Reset firstClicked and secondClicked // so the next time a label is// clicked, the program knows its the first clickfirstClicked null;secondClicked null;}private void CheckForWinner(){// Go through all of the labels in the TableLayoutPanel, // checking each one to see if its icon is matchedforeach (Control control in tableLayoutPanel1.Controls){Label iconLabel control as Label;if (iconLabel ! null){if (iconLabel.ForeColor iconLabel.BackColor)return;}}// If the loop didn’t return, it didnt find// any unmatched icons// That means the user won. Show a message and close the formMessageBox.Show(You matched all the icons!, Congratulations);Close();}}}效果 结束 有个大致的了解可以开始我的开发了。 对于新的技术我的总结是 文档生demo,demo生一,一生万物
http://www.zqtcl.cn/news/808520/

相关文章:

  • 四川省城乡和住房建设厅网站首页通过邮箱查注册网站
  • 自己的网站怎么编辑如何做响应式的网站
  • 做一个产品网站要多少钱网站宣传与推广的方法
  • 郑州区块链数字钱包网站开发公司局部装修改造找哪家装修公司
  • 网站界面可以做版权吗学生网站建设的总结与评价
  • 用表格做网站10条重大新闻
  • 河南定制网站建设报价盐城网站建设制作工作室
  • 能看各种网站的浏览器wordpress文章名称背景
  • ppt做视频模板下载网站网站建设在哪些方面
  • 能用pinduoduo做网站吗网站建设行业的分析
  • 新乡商城网站建设价格做网站网站会怎么样
  • 给个网站能用的2022作品集模板
  • 做推送好用的网站科技资讯网站有哪些
  • 手机上如何制作网站wordpress阅读量随机生成
  • 汝州市住房和城乡建设局网站网站自己做流量
  • 怎么做网站有利于收录沭阳做网站公司排名前十
  • 给企业做网站如何定价电商系统平台
  • 山东川畅科技网站设计流量网站建设教程
  • 湖南省住房建设厅网站企业手机网站制作
  • 做虚假网站犯法吗发稿计划
  • 网站怎么防黑客网站建设一般要多大空间
  • 做网站一般要多钱织梦做网站被告
  • 响应式网站如何设计网页设计与制作课程标准化项目申报书
  • 苏州公司技术支持 苏州网站建设蔬菜类网站建设规划书
  • 主流做网站wordpress字体设置
  • 大连网站建设解决方案加快政务网站群建设管理
  • 淮南网站建设全包成都设计咨询集团有限公司
  • 网站管理助手v3wordpress主题防盗版
  • 国外网页加速器seo优化排名怎么做
  • 网站后台做图片尺寸是多大企业网站的常见服务