You are on page 1of 3

Modules

1. Windows Application

Tool for animation is timer from toolbox using properties (time interval) 2. SQL Server 3. Web Application Send sms to mobile 4. Data Access 5. Silver Light 6. WCF

DLL file File => Windows form Application =>


using using using using using using using using using System; System.Collections.Generic; System.ComponentModel; System.Data; System.Drawing; System.Linq; System.Text; System.Windows.Forms; SmsClient;

namespace WindowsFormsApplication1 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { } private void button1_Click(object sender, EventArgs e) { SendSms sms * new SendSms(); string status*sms.send(textBox1.Text,textBox2.Text,textBox4.Text,textBox3.Text if(StatusBar=="1") MessageBox.Show("send");

else if(StatusBar=="2"); MessageBox.Show(" No Internet"); else MessageBox.Show("Invalid Login"); } } }

Moblie application (Candle animation) Software required- visual studio, single setip.exe file , wp7.1(window phone 7.1)

File=> new =>project=>after expanding of C# windows for silver light for =>windows phone => Run (coding is made by default) Copy the images folder of candle to the second option Toolbox=>image control=> adding picture by default (go to source prop. And select picture from image folder=> modify the image code by just writing only the name and extension) Double click on header to complete the coding by clicking on coding part. Var animation= new objectAnimationUsingKeyFrames For (int i=1;i<,=60;i++) //60 is total no images { Var KeyFrame= new DiscreteObjectKeyFrame() { KeyTime = KeyTime.FromTimeSpan(TimeSpan.FromMilliseconds(50*i) Value = string.Format(Images/candle_{0:D2}.jpg,i) }; animation.KeyFrames.Add(Keyframe); } Storyboard board = new Storyboard(); Board.RepeatBehavior= RepeatBehavior.Forever; Board.Children.Add(aniumation) Storyboard.SetTargetName(animation, image1.Name); // to replace i

Storyboard.SetTargetProperty(animation,new PropertyPath(Image.SourceProperty)); Resources.Add(candlestoryboard,,board); board.Begin(); }

2nd Application ( Mobile alarm) File => new =>project=>Silverlight for mobile application=>tool (TextBlock)=>drag it to screen=? Go to prop=> time(in seconds)=> tool(textbox of small size)=>tool(button) named as Create Alarm=> copy .wav file of alarm to second option=>go to coding Using Microsoft.Phone.Scheduler { Var alarmname= Guid.NewGuid().ToString(); Var alarm= new Alarm(alarmname) { BeginTime= DateTime.Now.AddSeconds(); Content = Mango Alarm; //when alarm sounds //alarm name // Create the alarm // header file

//message in alarm //sound of alarm

Sound = new Uri(alarm.wav,UriKind.Relative) };

You might also like