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
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.
Tags:
Please Discuss here about this assignment.Thanks
Our main purpose here discussion not just Solution
We are here with you hands in hands to facilitate your learning and do not appreciate the idea of copying or replicating solutions. Read More>>
Discussed & be touched with this discussion. After discussion a perfect solution will come in a result at the end.
Note:-
For Important Helping Material related to this subject (Solved MCQs, Short Notes, Solved past Papers, E-Books, FAQ,Short Questions Answers & more). You must view all the featured Discussion in this subject group.
For how you can view all the Featured discussions click on the Back to Subject Name Discussions link below the title of this Discussion & then under featured Discussion corner click on the view all link.
Or visit this link
&
.•°How to Download past papers from study groups°•.
Please Click on the below link to see…
.... How to Find Your Subject Study Group & Join ....
P.S: Please always try to add the discussion in proper format title like “CS101 Assignment / GDB No 01 Solution & Discussion Due Date: ___________”
Dear Admin,
Remove Sami ULLAH from the group
this is group for general discussion and helping with each other
this is not earning platform,
so please take serious action again this,
We are here to help each other not for earning.
agar video mill jay to no issue
send solution please
waiting also
Please Send the Idea Solution for CS411 Assignment No.3
any update please
share solutioon idea guyss
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Threading;
namespace Progress.BarExp1
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
Thread t = null;
Boolean isEnd = false;
public MainWindow()
{
InitializeComponent();
}
private void Work()
{
for(int i = 0; i <= 100; i++)
{
Thread.Sleep(100);
UpdateProgressBar(i);
}
isEnd = true;
UpdateProgressBar(100);
}
private void UpdateProgressBar(int i )
{
Action action = () => { SetProgress(i); };
ProgressBar.Dispatcher.BeginInvoke(action);
}
private void SetProgress(int i )
{
Button1.IsEnabled = false;
Button2.IsEnabled = false;
ProgressBar.Value = i;
if (isEnd)
{
Button2.IsEnabled = true;
}
}
private void Button_Click(object sender, RoutedEventArgs e)
{
isEnd = false;
Button2.IsEnabled = false;
t = new Thread(Work);
t.Start();
}
private void Window_Closing(Object sender, System.ComponentModel.CancelEventArgs e)
{
try
{
if (t.IsAlive)
t.Abort();
}
catch(Exception)
{
}
}
private void Button2_Click(object sender, RoutedEventArgs e)
{
t.Abort();
ProgressBar.Value = 0;
Button1.IsEnabled = true;
Button2.IsEnabled = false;
}
}
}
This is used in for loop in idea solution so They used to nested for loop in this Assignment.Ok
yi coding ghalat hay
© 2021 Created by + M.Tariq Malik.
Powered by
Promote Us | Report an Issue | Privacy Policy | Terms of Service
We are user-generated contents site. All product, videos, pictures & others contents on site don't seem to be beneath our Copyrights & belong to their respected owners & freely available on public domains. We believe in Our Policy & do according to them. If Any content is offensive in your Copyrights then please email at m.tariqmalik@gmail.com with copyright detail & We will happy to remove it immediately.
Management: Admins ::: Moderators
Awards Badges List | Moderators Group
All Members | Featured Members | Top Reputation Members | Angels Members | Intellectual Members | Criteria for Selection
Become a Team Member | Safety Guidelines for New | Site FAQ & Rules | Safety Matters | Online Safety | Rules For Blog Post