public void EditEntity(CountryAdditionalHour amount)
        {
            CountryAdditionalHour am = amount;

            if (amount == null && FocusedEntity == null)
            {
                return;
            }

            if (am == null)
            {
                am = FocusedEntity;
            }
            if (am == null)
            {
                return;
            }

            using (FormUnavoidableAddHours form = new FormUnavoidableAddHours())
            {
                form.Amount = am;

                if (form.ShowDialog() == DialogResult.OK)
                {
                    ListOfUnavAddHours.ResetItemById(am.ID);
                }
            }
        }
        private void NewEntity()
        {
            CountryAdditionalHour amount = ClientEnvironment.CountryAdditionalHourService.CreateEntity();

            amount.CountryID = EntityCountry.ID;
            using (FormUnavoidableAddHours form = new FormUnavoidableAddHours())
            {
                form.Amount = amount;

                if (form.ShowDialog() == DialogResult.OK)
                {
                    gridControl_UnAdHours.DataSource = null;
                    InitControl();
                }
            }
        }
        public void EditEntity(CountryAdditionalHour amount)
        {
            CountryAdditionalHour am = amount;
            if (amount == null && FocusedEntity == null) return;

            if (am == null) am = FocusedEntity;
            if (am == null) return;

            using (FormUnavoidableAddHours form = new FormUnavoidableAddHours())
            {
                form.Amount = am;

                if (form.ShowDialog() == DialogResult.OK)
                    ListOfUnavAddHours.ResetItemById(am.ID);
                
            }
        }
        private void NewEntity()
        {
            CountryAdditionalHour amount = ClientEnvironment.CountryAdditionalHourService.CreateEntity();
            amount.CountryID = EntityCountry.ID;
            using (FormUnavoidableAddHours form = new FormUnavoidableAddHours())
            {
                form.Amount = amount;

                if (form.ShowDialog() == DialogResult.OK)
                {
                    gridControl_UnAdHours.DataSource = null;
                    InitControl();
                }
            }
        }