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;
|
}
|
|
}
|
}
|