我为此应用程序使用了哪种工具 [英] which tool i used for this application

查看:72
本文介绍了我为此应用程序使用了哪种工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要尝试在其中创建一个应用程序,我必须这样做,我必须控制我不知道该假定为"X",我应该采取什么措施.因此,如果我单击"X"控件,则其颜色应为绿色,然后再次单击同一工具,其颜色应为红色.
所以请告诉我应该使用哪种工具,如何解决此问题.

例如.假设它们是一个很小的殖民地建筑,那里是扁平的,现在我们必须在点击时对其进行预订,当我们单击扁平时,它的颜色应该是绿色的,而当我们再次单击时,它的颜色变成红色.该公寓意味着您的公寓已售出.从另一个人看到其他颜色后,应将其显示为黑色,这表示其不可用.在按照以下步骤操作之后,我必须将其连接到我的数据库.

iam try to make an application in which , i have to do that i have to take a control i don''t know what i should taken let it assumed that ''X''. so if i take ''X'' control on click that its color should be green and again click on same tool its color should be red.
so plz tell me what tool should i use , how can i solve this problem.

eg. suppose their is a small architecture of colony in which their is flat are there, now we have to book them on click, when we click on flat its color should be green its me its booked, when the again we click the color become red of that flat its mean thee flat is sold. after another person from other see its color should been seen black its means that its not available. after by following steps then i have to connect this to my database. in which we can see which flat is booked, sold, or vacant.

推荐答案

有很多方法可以做到:创建一个UserControl(也许称为"Flat"),其中包含一个Flat的所有信息,并且能够显示自己.添加一个属性以说明是否已预订,并处理Click事件以更改颜色:设置控件的BackgroundColor属性将对其进行更改.
There are a large number of ways to do this: the way I would do it is to create a UserControl (called "Flat" perhaps) which contains all the info for a flat, and which is capable of displaying itself. Add a property to say if it is booked or not, and handle teh Click event to change the colour: setting the BackgroundColor property of the control will change it.




我认为您可以使用jQuery非常轻松地做到这一点.您需要创建Div标签的网格,然后单击特定Div即可将颜色从红色切换为绿色或从绿色切换为红色.

请访问 [ ^ ]链接,您将了解有关切换Div颜色的想法.

祝你好运

谢谢
-Amit Gajjar
Hi,

I think you can do that using jQuery very easily. you need to create grid of Div tag and then on click of particular Div you can toggle the color from red to green or green to red.

Please visit this[^] link, you will get idea about toggle Div color.

Best of luck

Thanks
-Amit Gajjar


这篇关于我为此应用程序使用了哪种工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆