Skale
asked on
How to bind predefined jobs to WPF control and handle it in C#
I'm planning to put a DataGrid or ListView controls to my WPF desktop application. In fact i couldn't decide it which control or structure is best fitting my requirements. So i'd like to explain my aim.
1) There's a list of pre-defined checks for users
2) I'd like to show these all checks(Appx. 20-25 Checks) to user
3) User will select which checks they want to RUN
4) Prompt user about check status (IN QUE, STARTED, FINISHED)
5) I'd like to give access links for finished checks' output files.
Each checks has own function in sample class file like below
I tried to figure out how it look like, you can find on attachment files.
I'm newbie at WPF and have some challanges and i'd like to ask experts.
1) When clicked "RUN" button how should be code structure, because it should only run selected checks.
2) How to update container control for "Progress Status" and "Output File" sections on runtime.
and most important thing is for me how to bind these checks to control.
3) Because i'm planning to add DataGrid or ListView.DataGrid from MaterialDesignXAMLToolkit and as you can see from attached picture"wpf_sample_control s.png", i have to binding them. How can i handle it?
Any help would be grateful! I'm really appreciate if you can guide me!
Thank you.
1) There's a list of pre-defined checks for users
2) I'd like to show these all checks(Appx. 20-25 Checks) to user
3) User will select which checks they want to RUN
4) Prompt user about check status (IN QUE, STARTED, FINISHED)
5) I'd like to give access links for finished checks' output files.
Each checks has own function in sample class file like below
namespace WpfTestApp
{
internal static class Class1
{
public static void RUN()
{
// RUN CODE
}
public static void NamingCheck()
{
//some coding stuff in here for QAZ0001
}
public static void ConsistencyCheck()
{
//some coding stuff in here WSX0005
}
public static void MetricsCheck()
{
//some coding stuff in here EDC0010
}
public static void ComprasionCheck()
{
//some coding stuff in here RFV0002
}
}
}
I tried to figure out how it look like, you can find on attachment files.
I'm newbie at WPF and have some challanges and i'd like to ask experts.
1) When clicked "RUN" button how should be code structure, because it should only run selected checks.
2) How to update container control for "Progress Status" and "Output File" sections on runtime.
and most important thing is for me how to bind these checks to control.
3) Because i'm planning to add DataGrid or ListView.DataGrid from MaterialDesignXAMLToolkit and as you can see from attached picture"wpf_sample_control
Any help would be grateful! I'm really appreciate if you can guide me!
Thank you.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Best regards, Raisor