diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2019-11-18 15:13:33 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2019-11-18 15:13:33 +0200 |
| commit | d50797ddb8c3d886d38a56a09dfe34540512e331 (patch) | |
| tree | f41ec7f6c86c10a4446319dd08e9edaf19e87faf /Software/Visual_Studio/PPC/Modules/Tango.PPC.Maintenance/GuideBase.cs | |
| parent | fb9d511b7ec52f2343a1f16e8bba4ff8a757e7e4 (diff) | |
| download | Tango-d50797ddb8c3d886d38a56a09dfe34540512e331.tar.gz Tango-d50797ddb8c3d886d38a56a09dfe34540512e331.zip | |
Working on PPC Maintenance screen.
Diffstat (limited to 'Software/Visual_Studio/PPC/Modules/Tango.PPC.Maintenance/GuideBase.cs')
| -rw-r--r-- | Software/Visual_Studio/PPC/Modules/Tango.PPC.Maintenance/GuideBase.cs | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.Maintenance/GuideBase.cs b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Maintenance/GuideBase.cs new file mode 100644 index 000000000..f016182d8 --- /dev/null +++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Maintenance/GuideBase.cs @@ -0,0 +1,35 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Media.Imaging; + +namespace Tango.PPC.Maintenance +{ + public abstract class GuideBase + { + public abstract String Name { get; } + public abstract BitmapSource Icon { get; } + public abstract BitmapSource Image { get; } + public abstract List<GuideStep> Steps { get; } + + protected virtual List<GuideStep> GetStepsFromResource(String key) + { + List<GuideStep> list = new List<GuideStep>(); + + var arr = (Application.Current.Resources[key] as Array); + + foreach (var item in arr) + { + list.Add(new GuideStep() + { + Text = item + }); + } + + return list; + } + } +} |
