예제 #1
0
 public LineEditBox(string title, LineEditBoxEntity entityType, string existingValue = null)
 {
     InitializeComponent();
     _entityType  = entityType;
     Text         = title;
     textBox.Text = existingValue;
 }
예제 #2
0
        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();
            }
        }