Professional Documents
Culture Documents
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
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");
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
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