Latest Activity In Study Groups

Join Your Study Groups

VU Past Papers, MCQs and More

CS411 Assignment No, 3 Discussion and Solution. Due date is 30 July Spring 2018

You are required to create a WPF C# application using Visual Studio.

Problem Statement:

Layout:

Create a grid Layout with one Column and two rows

  • Inside first row create another grid with two columns and two rows and then add 4 buttons. Start First ,Stop First, Start Second and Stop Second. Make the border of this layout Green.
  • Inside second row create a DockPanel and add 4 vertical[1] progress bars. Border must be red.

Functionality:

Pressing Start first Button will increment first two progress bars so that second progress bar is incremented faster and upon reaching 100 the first progress bar is incremented by 1.

So the second progress bar will be completed 100 times and first one only 1 time[2]. But the UI should remain responsive[3] in between this process.

Stop button will stop the process and enable the start button to start process again.

Start Second will do the same to third and fourth progress bars but both the process should work in parallel.

Output.gif has been attached with this Assignment file please observe this file carefully your program’s output must be like this output file.

Submission details

Following Files Must be submitted in a single zip or rar file.

·         .C# code file

·         .XAML File (Front End file)

·         A .gif file which shows working of your Application(For Recording .gif a software named Screentogif is uploaded on LMS, or you can use any other gif recording tool as well)

You are not required to submit the complete project, only copy these three files from project folder. Please note if you submit doc file you will be awarded 0 marks.

If you do not submit any of the above mentioned file 25% marks per file will be deducted.

[1] To Make Progress vertical you can use Layout Transform.

[2] You can use nested loops to achieve this.

[3] UI remains responsive when task is being done asynchronously in separate threads.

Views: 8325

Attachments:

Replies to This Discussion

I have Assignment complete working as require on paymet  RS:1000 

yr plz muje b btao kesay ki ha ?guide kar doplz Allah ap ka bhala karay ga

send me your contact no

sharjil.ccnp@gmail.com

rana bhai kindly mujhe solution bhaj dain assignment ka aj last day and blkul samaj nahi aaraha email id is saifsunny0@gmail.com

abbasaun377@gmail.com

koi vedio hi bana lo kisi ka bhala ho jay ga 

Sami ULLAH

Email, cell no, facebook personal links, links sharing for promotion any kind of site & youtube direct link sharing is not allowed at the site.

 

Although If you want to share the youtube video, then paste the embed codes here of the youtube video. Otherwise your comment / reply will be deleted. As well as your account will be deleted from the site. Thanks for understanding.

Sami ULLAH next time be care.. thanks 

or yi xaml file hay>>>

<Window x:Class="WpfApp2.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:WpfApp2"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800">
<Grid>

<Grid.ColumnDefinitions >
<ColumnDefinition Width="2*" />


</Grid.ColumnDefinitions>

<Grid.RowDefinitions >

<RowDefinition Height="203*" />
<RowDefinition Height="216*"/>

</Grid.RowDefinitions>
<Grid Grid.Row="0" >
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*" />
<ColumnDefinition Width="2*" />

</Grid.ColumnDefinitions>
<Grid.RowDefinitions >
<RowDefinition Height="1*" />
<RowDefinition Height="1*" />
</Grid.RowDefinitions>
<Button Content="Start First" Name="Button1" HorizontalAlignment="Left" VerticalAlignment="Top" Width="396" Height="102" Click="Button1_Click"/>
<Button Content="Start Second" Name="Button3" Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Top" Width="396" Height="102" Click="Button3_Click"/>
<Button Content="Stop First" Name="Button2" HorizontalAlignment="Left" Grid.Row="1" VerticalAlignment="Top" Width="396" Height="102" Click="Button2_Click" />
<Button Content="Stop Second" Name="Button4" Grid.Column="1" HorizontalAlignment="Left" Grid.Row="1" VerticalAlignment="Top" Width="396" Height="102" Click="Button4_Click"/>
</Grid>
<ProgressBar HorizontalAlignment="Left" Name="ProgressBar1" Height="10" Margin="145,0,0,98" Grid.Row="1" VerticalAlignment="Bottom" Width="127" RenderTransformOrigin="0.5,0.5">
<ProgressBar.RenderTransform>
<TransformGroup>
<ScaleTransform/>
<SkewTransform/>
<RotateTransform Angle="-90"/>
<TranslateTransform/>
</TransformGroup>
</ProgressBar.RenderTransform>
</ProgressBar>
<ProgressBar HorizontalAlignment="Left" Name="ProgressBar2" Height="10" Margin="58,110,0,0" Grid.Row="1" VerticalAlignment="Top" Width="127" RenderTransformOrigin="0.5,0.5">
<ProgressBar.RenderTransform>
<TransformGroup>
<ScaleTransform/>
<SkewTransform/>
<RotateTransform Angle="-90"/>
<TranslateTransform/>
</TransformGroup>
</ProgressBar.RenderTransform>
</ProgressBar>
<ProgressBar HorizontalAlignment="Left" x:Name="ProgressBar4" Height="10" Margin="462,0,0,93" Grid.Row="1" VerticalAlignment="Bottom" Width="127" RenderTransformOrigin="0.5,0.5">
<ProgressBar.RenderTransform>
<TransformGroup>
<ScaleTransform/>
<SkewTransform/>
<RotateTransform Angle="-90"/>
<TranslateTransform/>
</TransformGroup>
</ProgressBar.RenderTransform>
</ProgressBar>
<ProgressBar HorizontalAlignment="Left" x:Name="ProgressBar3" Height="10" Margin="616,0,0,93" Grid.Row="1" VerticalAlignment="Bottom" Width="127" RenderTransformOrigin="0.5,0.5">
<ProgressBar.RenderTransform>
<TransformGroup>
<ScaleTransform/>
<SkewTransform/>
<RotateTransform Angle="-90"/>
<TranslateTransform/>
</TransformGroup>
</ProgressBar.RenderTransform>
</ProgressBar>

</Grid>
</Window>

need complete solution please make video 

 Dildar Hussain 

 Thread t = null; Thread t1 = null; 

ye kis ki property hain .. t and t1 py error a rha hai .. ye kis se relate hai ??

RSS

© 2021   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service