Friday, 21 August 2015

Start using Visual studio

Today let us discuss about a sample project in order to display the text written in text box
  • Open your visual studio from the start menu
  • Create new project with your desired project name.
  • In order to design your project open MainPage.Xaml page. Just open solution explorer tab and double click on main page. As you know Main page is the root page of the project. The execution of the app starts from this page.
  • After a double click on main page we can see a designer page with black color. It is a grid and we can also change the color of our grid. This grid is also one of the control of windows runtime application.

So our task is to display the text when we input our text in textbox. This is done in the following way.

In order to display our text we need two controls.
  • Textbox - This control is mainly used to input text or to edit our text. We can also write multiple line in this textbox
  • Text block - It is mainly used to display text. We cannot edit text while we place text block in your design

 
We can drag and drop these controls to our design if not we can just add controls using XAML code. In down under the design we can find this XAML file. After adding controls to our design we change edit/modify the names and properties of the particular control. Press F4 to access the properties of the particular control.

 

The highlighted textbox is the control we can drag & drop to the design. In the above image we can see how to change the name of the control. We can directly add our text in textbox with the help of properties. In the Text property when we write the text & press enter, the change is reflected in the designer. The name assigned in the properties can be used in the code behind file.



In the above diagram we can see how to increase the font size of the text block control. The highlighted text is the XAML code. When we drag and drop our control it automatically generates XAML code. This is the advantage of Visual Studio tool. The change is reflected in the designer. Observe the things carefully.

Thursday, 20 August 2015

Spring - A pleasant and delighted season


Spring season starts after winter and before summer. It begins from the middle of February and completes in the middle of April. It is the best season of the year. Most of the people are fond of this season. They enjoy a lot with good and pleasant climate.  Spring is neither hot nor cold. It is very delightful. It is good for health. While we walk in the morning we feel very happy and our mind goes pleasant. We can say that this spring season is the favorite season of poets. Because they describe very nicely in their poems about this spring season. This season is called the queen of all seasons. Day and night both become very pleasant and cool. Days and nights become almost same length, neither too short nor too long.  Sky looks very clear and wind becomes very cool and refreshing.


The people mostly like this spring season because in this season the climate will be very pleasant. The temperature in this season remains constant. In spring, the trees bring new leaves on their branches. Spring is the season of joy and happiness for all the living beings like tree, plants, flowers, animals, birds, human beings, etc because it is neither hot nor cold. Many new variety of flowers grow in this season because of the pleasant climate. We can see pleasant nature when fields grow new grass and the entire nature becomes green and it looks fresh. This makes the main difference between the rest of other seasons.Only in this spring season we can see crops fully ripen with fruits and flowers. The farmers also feel happy if the fields grow within the time. 


We should face problems even in this spring season. As it is the end of winter season and start of summer season, it is the more sensitive season to the health. We should not neglect our health.  Small pox, chicken pox and measles are quite common in this season. So the people should be very careful in this season too. We have a saying in English "Prevention is better than cure". So we should take some precautions in order to get rid of this diseases in this season. 

Spring season is very delighted and a pleasant season. In winter season we face very cool weather. We cannot even survive in some of the regions of northern hemisphere because of less temperatures. Even some people die due to low temperatures in some regions. They can't tackle the cool weather so lot of issues happens in this season. Coming to the summer season it is quite opposite to winter season. We should face very high temperature in this season. The people face many difficulties during this season.  They should take care of their health particularly in this season.  In rainy season we feel bad because of dirty and muddy roads because of rainfall. The only season with less complaints is spring season.


Intro to Visual studio

Today let use discuss about a sample application. In our application we can include many controls from our toolbox. While we add these elements we can edit the properties of that particular control and we can also generate events to that control
 
First let us discuss about properties and events with respect to control.
Properties of a particular control is available to describe a control. It depends upon the user to edit some particular control. It can be done in the following ways.
  • On the main menu, you can click View -> Properties Window
  • On the grid, you can right-click anything (either the grid itself or any control positioned on it) and click Properties
  • The shortcut to display the Properties window is F4
  


Events of the controls is the action or event generated by the particular control at runtime. Most of the controls have default event.
 
  • In properties window we can see thunder symbol and when we click on this symbol we can generate events according to the applications
Just double click or write the name of the event and press enter. This takes directly to the code behind file or .cs file where you can include the whole functionalities and logical operations.
To build our application move your cursor to Build option and click on Build option. It compiles code file which are changed. Build solution only builds those projects which have changed in the solution, and does not affect assemblies that have not changed. Assemblies are nothing but the code generated after successful compilation.


After Building our application we can run or deploy our application by clicking on local machine with green color play symbol and run the app. 

Wednesday, 19 August 2015

About Visual Studio tool

In this blog let us discuss about the visual studio with some simple examples for windows store applications.

Visual studio is a IDE which is used to build, create and deploy different kinds of applications like windows forms, WPF, ASP.net web forms, Console applications and many more. This visual studio tool is developed by Microsoft which supports different languages. Most of the developers use some of the languages to develop applications. Some of them are Visual C#, VB.net, F#, ASP.net managed C++ etc. We use dot net framework from the earlier 2.0 stable version to the current 4.5 version particularly in Visual studio 2013.  

Tools required to develop applications using Visual studio 2013 are
  • Windows 8.1(This operating system is necessary to develop particularly windows store and windows phone applications)
  • Visual studio 2013 Community edition/academy edition tool (We can also include Blend and Phone emulators during installation)


After installation start new project and rename it. We can also browse our desired location to save our project files


In this above diagram we can see how to add a new project. We should particularly select the language before you select the type of application. After selecting the language we should select the type of application to be developed. We can see many templates in the dialog box. These templates are used to develop the applications similarly but it only differs in theme. We can also change the name of our application. We can change the directory of our project files by clicking on browse button.
In Solution explorer we can see the files with respect to our project.
Our main page, code behind file, App.xaml.cs, Assets, and we can also see package.appmanifest files in our solution explorer.



In this App.xaml.cs page is already predefined with some code by developer. It is the code behind file for App. Xaml page. Every application consist of one xaml page and one .cs page where we can include all functionalities of the app. These both files together makes a complete module of one page. It also contains a constructor that calls InitializeComponents() method.  No need of declaring this initialize component, we can find it in every page.

In Mainpage.xaml we can design our user interface of our app. The tools from the toolbox also can be added directly to our UI. We can also add these tools in xaml code. Mainpage.xaml.cs is the file that contains the functionalities and attribute values where we can add event handlers and we can implement methods.


Winter season - We can feel fresh

Winter season starts when the earth hemisphere moves away from the sun. When it is winter in northern hemisphere the southern hemisphere faces sun and the temperature will be different from the northern hemisphere. It will be slightly more compared to southern hemisphere. In winter season we face  very less temperatures. This winter season starts from the month of November in India.  In winter season the atmosphere and sky looks clear. The cool air blows all the time in this season. In some areas when the temperature decreases we can see snow fall in such regions. The roads of that region get blocked because of this snow dumps. This trouble the people traveling from one place to another place. The government of that region undertake this problem by placing a vehicle to remove all the snow dumps. The vehicle is attached with a machine that removes the snow while it moves along the road.

The poor people face lot of issues with this winter season. The people should bear the low temperatures in winter seasons. The people like to sit near to the fire because of the cool weather. Most of them like to be in daylight rather than sitting in home. Some people even faced death due to the low freezing temperatures. They should be very careful while facing this low temperatures particularly in cool areas. People also should wear protective clothing and accessories like shoes, jackets, woolen material which makes our body warm.

Photography from Google

These ice crystals are formed due to air with little amount of moisture from the mixture of cool weather on the surface area.. These type of ice crystals and snow are mostly seen in  northern hemisphere compare to southern hemisphere because in northern hemisphere we have large scale of land masses whereas in northern hemisphere it is bit less. The people make lot of fun with the ice crystals. Even kids play in snow. When the weather decreases to low temperatures we should not survive in that particular area.

pahalgam-in-winter


The winter season in  north India maintains very low temperatures and in some regions of South India  we can see normal temperatures. This is because of Himalayas and mountains in that particular north region. The people in India  make income in different ways. They sell items which are helpful to keep our body warm. People also buy those things which are necessary to use in winter season. Winter season has its own importance. It is very useful for health. People like to walk in the morning. They find fresh air to breathe in. In summer we cannot work for  a long time. But in winter we can work for hours and hours. We do not get tired easily. There is no problem of mosquitoes in this season. People do not fall ill as they do in summer. This season is also very important for farmers 

Tuesday, 18 August 2015

Summer - very hot...

The summer season start between spring and autumn every year. It will be around March to May. Some people don't like this season. At summer the days are longest and nights are shortest. But kids like this summer season because they get holidays in this season. Even the schools are not interested to continue their classes because of this high temperature. In this summer season we can see the increase of temperature. It gradually increases from the initial point and it increases to the high temperature. The people can't even stay in their home because of this temperature. So they go to different tourist spots in order to get rid of this season. And they mostly choose cool areas and hilly areas to enjoy their moments.

In this summer season some people also try to earn income by investing in different ways. Mostly people prefer liquid stuff because while we go on work or tend to be in heat our mouth becomes dry. This is because of the high temperature. So while we drink some liquid beverages we can feel better. In summer season we should maintain a proper diet and we should not neglect our health. Even people will die because of this heat. So the government also takes some steps and implements some activities to face this temperatures. They provide drinking water in most of the areas where people survive more. They also make the people to overcome the problems while we face high temperature. Because of this high temperatures our body will get tired very quickly when we work in hot areas. So people should follow some precautions to minimize the risk factors that affect our body and even this leads to death.

Sometimes the temperature gradually decreases and the climate will be very comfortable. This is because of the clouds. We can also see rainfall in some regions. This is due to the evaporation of water. While we face this kind of situation particularly in summer season we feel very happy and satisfied with the climate but this won't be for the long time. Some people not even go outside because of this high temperatures. This is necessary to drink water heavily in this summer season. Because the loss of water in our body leads to lot of diseases. We should not travel in summer season particularly in the sunny days. This would surely trouble your body.

The best way to get rid of this season is by travelling from the high temperatures to the cool areas. Some people even wait for the completion of this summer season. In their homes they prefer coolers and air conditioners to feel comfortable with this summer season. We can also see power cuts in some areas because of the lack of water resources. We generate electricity through water. Converting of mechanical energy in to electrical energy we can produce current from water. Due to high temperatures the water will be evaporated and this makes complex to generate power. So in order to overcome this issue solar energy is used to generate powers. With the help of solar panels we store the energy and use them.

The farmers mainly effects because of this season. They mainly depends on rainfall but because of this high temperatures we cannot have rainfalls. So the people stop farming the crop and choose other way to earn income. So when summer starts in one region the climate would be different in other region. For example in India the summer starts from the March. But it is different in other areas.


Monday, 17 August 2015

Discussion on rainy season

Most of the people mainly benefit in this season and most of the people even die because of this season.. This is because the rainfall is the main source of income to some people who intend their life's to farming. The procedure of farming particularly involves water. With out water the crop cannot be grown. The people who can invest their money in buying motors for their crop doesn't bother about rainfall. But some people mainly depends on rainfall because they cannot afford the amount to buy those equipment. So the rainfall is must and mandatory for a poor farmer.  but when things and situations changes according to nature the climate  doesn't support the nature. This leads to drain the land.



Heavy rainfall is very harmful while the continuous rainfall even washes the cities. In common terminology we can say it as thoofan. Because of this thoofan the rainfall will be continuous and people struggle even to survive. While the region struck with the thoofan most of the people will die and property will get damaged. In another case the region with effect of tsunami, it leads to the death of people and we cannot see even single man surviving after the completion of  tsunami effect. This happens mostly in the coastal areas. The weather broadcast department can predict the arrival of tsunami. Most of the time government try to rescue the people but they fail. 

Most of the time the world depends upon this rainy season. In this rainy season the average rainfall should be maintained constantly throughout the season. If not lot of problems should face by the people. When nature is not comfort with the climate it effects the rainfall and leads to loss finally to the people. Some families mainly depends on the rain falls. The rainfalls should be limited and neutral throughout the season. Heavy rainfall leads to floods which damages the crop. Lack of rainfall also leads to dry land. So most people even pray to gods for good rainfall. This rain water is directly sent in to the dams and reservoirs which are used for irrigation.


Some times these rainfall also leads to evolve some of the unknown diseases. This is because of the improper and lack of sustainable development of the areas. Even now we can see bad infrastructure in major cities. The drainage system is not perfectly maintained by the government. The water from drainage directly flows on the road. This leads to lot of the unknown diseases to the people. So the government also should feel responsible to maintain good and proper drainage system in order to maintain good and clean cities.