ui/wpf/UIcore/Controls.cs

changeset 451
b3eb3a25fb46
parent 450
99b5d52096b5
child 452
a0620cf552a6
--- a/ui/wpf/UIcore/Controls.cs	Sat Feb 01 09:54:45 2025 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,55 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using System.Windows;
-using System.Windows.Controls;
-
-namespace UI
-{  
-    public class Controls
-    {
-        public static Button Button(Container container, String label, RoutedEventHandler e)
-        {
-            Button button = new Button();
-            button.Content = label;
-            container.Add(button, false);
-
-            button.Click += e;
-
-            return button;
-        }
-
-        public static Label Label(Container container, String str, int alignment)
-        {
-            HorizontalAlignment a;
-            switch (alignment)
-            {
-                case 0: a = HorizontalAlignment.Left; break;
-                case 1: a = HorizontalAlignment.Right; break;
-                case 2: a = HorizontalAlignment.Center; break;
-                default: a = HorizontalAlignment.Left; break;
-            }
-
-            Label label = new Label();
-            label.HorizontalAlignment = a;
-            label.Content = str;
-            container.Add(label, false);
-
-            return label;
-        }
-
-        public static Label Space(Container container)
-        {
-            return Label(container, null, 2);
-        }
-
-        public static Separator Separator(Container container)
-        {
-            Separator separator = new Separator();
-            container.Add(separator, false);
-            return separator;
-        }
-    }
-}

mercurial