admin
2020-06-10 a610f2ab6e543d2cb78c1ef212ac6a74ddc067d9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
 
namespace WindowsFormsApp1.utils.ui
{
    class LabelFactory
    {
        private static Label CreateBaseLabel() {
          Label label = new Label();
          return label;
        }
 
        public static Label CreateDefault() {
 
            return CreateBaseLabel();
        }
 
        public static Label CreateDefault(String text) {
            Label label = CreateBaseLabel();
            label.Text = text;
            return label;
        }
 
    }
}