public LineEditBox(string title, LineEditBoxEntity entityType, string existingValue = null) { InitializeComponent(); _entityType = entityType; Text = title; textBox.Text = existingValue; }
public static string GetName(this LineEditBoxEntity lineEditBoxEntity) { switch (lineEditBoxEntity) { case LineEditBoxEntity.Account: return("рахунку"); case LineEditBoxEntity.Category: return("категорії"); case LineEditBoxEntity.SubCategory: return("підкатегорії"); default: throw new ArgumentException(); } }