|
|
|
|
@ -121,16 +121,26 @@ public class DiamondSelectVM : BaseViewModel |
|
|
|
|
}else if (Common.RunMode == 1) |
|
|
|
|
{ |
|
|
|
|
var bitmap = new BitmapImage(new Uri("pack://application:,,,/Resource/Images/UIResource/round_P8-P8.png", UriKind.RelativeOrAbsolute)); |
|
|
|
|
ButtonViewModel button1 = new ButtonViewModel() { Text = "P8-P8 Stage 1", ImageSource = bitmap, Type = "ROUND P8 P8 S1", Command = StartGradingCommand, IsFocused = true}; |
|
|
|
|
ButtonViewModel button2 = new ButtonViewModel() { Text = "P8-P8 Stage 2", ImageSource = bitmap, Type = "ROUND P8 P8 S1 S2", Command = StartGradingCommand, IsFocused = true}; |
|
|
|
|
ButtonViewModel button3 = new ButtonViewModel() { Text = "P8-P8 Stage 3", ImageSource = bitmap, Type = "ROUND P8 P8 S1 S2 S3", Command = StartGradingCommand, IsFocused = true}; |
|
|
|
|
ButtonViewModel button4 = new ButtonViewModel() { Text = "P8-P8 Stage 4", ImageSource = bitmap, Type = "ROUND P8 P8 S1 S2 S3 S4", Command = StartGradingCommand, IsFocused = true}; |
|
|
|
|
ButtonViewModel button5 = new ButtonViewModel() { Text = "P8-P8", ImageSource = bitmap, Type = "ROUND P8 P8", Command = StartGradingCommand, IsFocused = true}; |
|
|
|
|
tempButtons2.Add(button1); |
|
|
|
|
tempButtons2.Add(button2); |
|
|
|
|
tempButtons2.Add(button3); |
|
|
|
|
tempButtons2.Add(button4); |
|
|
|
|
tempButtons2.Add(button5); |
|
|
|
|
List<ButtonViewModel> listBtn = new List<ButtonViewModel>() |
|
|
|
|
{ |
|
|
|
|
new ButtonViewModel() { Text = "P8-P8 Stage 1", ImageSource = bitmap, Type = "ROUND P8 P8 S1", Command = StartGradingCommand, IsFocused = true}, |
|
|
|
|
new ButtonViewModel() { Text = "P8-P8 Stage 2", ImageSource = bitmap, Type = "ROUND P8 P8 S2", Command = StartGradingCommand, IsFocused = true}, |
|
|
|
|
new ButtonViewModel() { Text = "P8-P8 Stage 3", ImageSource = bitmap, Type = "ROUND P8 P8 S3", Command = StartGradingCommand, IsFocused = true}, |
|
|
|
|
new ButtonViewModel() { Text = "P8-P8 Stage 4", ImageSource = bitmap, Type = "ROUND P8 P8 S4", Command = StartGradingCommand, IsFocused = true}, |
|
|
|
|
new ButtonViewModel() { Text = "P8-P8 Stage 5", ImageSource = bitmap, Type = "ROUND P8 P8 S5", Command = StartGradingCommand, IsFocused = true}, |
|
|
|
|
new ButtonViewModel() { Text = "P8-P8 Stage 6", ImageSource = bitmap, Type = "ROUND P8 P8 S6", Command = StartGradingCommand, IsFocused = true}, |
|
|
|
|
new ButtonViewModel() { Text = "P8-P8 Stage 7", ImageSource = bitmap, Type = "ROUND P8 P8 S7", Command = StartGradingCommand, IsFocused = true}, |
|
|
|
|
new ButtonViewModel() { Text = "P8-P8 Stage 8", ImageSource = bitmap, Type = "ROUND P8 P8 S8", Command = StartGradingCommand, IsFocused = true}, |
|
|
|
|
new ButtonViewModel() { Text = "P8-P8", ImageSource = bitmap, Type = "ROUND P8 P8", Command = StartGradingCommand, IsFocused = true}, |
|
|
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
listBtn.ForEach(e => tempButtons2.Add(e)); |
|
|
|
|
// tempButtons2.Add(button1); |
|
|
|
|
// tempButtons2.Add(button2); |
|
|
|
|
// tempButtons2.Add(button3); |
|
|
|
|
// tempButtons2.Add(button4); |
|
|
|
|
// tempButtons2.Add(button5); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|