mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-05 04:07:21 +00:00
Moved all extension methods into extension blocks (#1155)
This commit is contained in:
1 parent
acc7d09fa2
commit
c0a75f39ac
138 files changed
+5884
-4954
No files matched your search
@@ -7,20 +7,23 @@ internal static class LayoutPurposeAreaExtensions
|
||||
{
|
||||
private static string TB(string fallbackEN) => PluginSystem.I18N.I.T(fallbackEN, typeof(LayoutPurposeAreaExtensions).Namespace, nameof(LayoutPurposeAreaExtensions));
|
||||
|
||||
/// <summary>
|
||||
/// The name of the area, as the forms show it above its kinds of slides.
|
||||
/// </summary>
|
||||
/// <param name="area">The area.</param>
|
||||
public static string Label(this LayoutPurposeArea area) => area switch
|
||||
extension(LayoutPurposeArea area)
|
||||
{
|
||||
LayoutPurposeArea.FRAMING => TB("Structure and framing"),
|
||||
LayoutPurposeArea.GENERAL => TB("General content"),
|
||||
LayoutPurposeArea.TEACHING => TB("Teaching and workshops"),
|
||||
LayoutPurposeArea.BUSINESS => TB("Business and projects"),
|
||||
LayoutPurposeArea.SCIENCE => TB("Science and research"),
|
||||
LayoutPurposeArea.MEDICINE => TB("Medicine"),
|
||||
LayoutPurposeArea.LAW => TB("Law"),
|
||||
/// <summary>
|
||||
/// The name of the area, as the forms show it above its kinds of slides.
|
||||
/// </summary>
|
||||
public string Label() => area switch
|
||||
{
|
||||
LayoutPurposeArea.FRAMING => TB("Structure and framing"),
|
||||
LayoutPurposeArea.GENERAL => TB("General content"),
|
||||
LayoutPurposeArea.TEACHING => TB("Teaching and workshops"),
|
||||
LayoutPurposeArea.BUSINESS => TB("Business and projects"),
|
||||
LayoutPurposeArea.SCIENCE => TB("Science and research"),
|
||||
LayoutPurposeArea.MEDICINE => TB("Medicine"),
|
||||
LayoutPurposeArea.LAW => TB("Law"),
|
||||
|
||||
_ => TB("Other kinds of slides"),
|
||||
};
|
||||
_ => TB("Other kinds of slides"),
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user