Ejemplo n.º 1
0
 /// <summary>
 /// Возвращает полную информацию о группе вычислителей
 /// </summary>
 public static string Info(this EstimatorsGroup group)
 {
     return($"Id:\t\t{group.Id}\n" +
            $"Назва:\t\t{group.Name}\n" +
            $"Створено:\t{group.DateCreated.ToString("dd.MM.yyyy HH:mm")}\n" +
            $"Змінено:\t{group.DateModified.ToString("dd.MM.yyyy HH:mm")}");
 }
        public EditEstimatorsGroupForm()
        {
            InitializeComponent();

            Load += (sender, args) =>
            {
                if (!IsEdit)
                {
                    Group = new EstimatorsGroup();
                    Text  = TITLE_CREATE;
                    Icon  = Resources.Add;
                }
                else
                {
                    Text         = TITLE_EDIT;
                    txtName.Text = Group.Name;
                    Icon         = Resources.Group1;
                }
            };
        }