Esempio n. 1
0
 protected override void OnAdding()
 {
     MainLayoutGroup.IsEnabled        = true;
     FmHeaderLayoutGroup.HeaderTitle  = HeaderService.GenerateAddHeaderTitle(UserControlTitle);
     MainLayoutGroup.SelectedTabIndex = 0;
     TitleTextEdit.Focus();
 }
 protected override void OnEditing()
 {
     MainLayoutGroup.IsEnabled       = true;
     FmHeaderLayoutGroup.HeaderTitle =
         HeaderService.GenerateEditHeaderTitle(UserControlTitle, _activeCarrier.Title);
     TitleTextEdit.Focus();
 }
        public UcCategoryAddEdit(int categoryId) : this()
        {
            UserControlTitle = "ویرایش دسته بندی محصولات";
            _category        = GetCategory(categoryId);
            var parentProductCategories = ParentCategoryComboBoxEdit.ItemsSource as List <FmComboModel <int> >;

            FillData(_category);
            LoadCategories();
            TitleTextEdit.Focus();
        }
        public UcCarrierService(CarrierService carrierService) : this()
        {
            _activeCarrierService = carrierService;
            if (_activeCarrierService.Id > 0)
            {
                FillData(_activeCarrierService);
            }

            TitleTextEdit.Focus();
        }
        private void OnLoaded(object sender, RoutedEventArgs e)
        {
            LoadContactTypeComboBox();
            LoadAddressTypeComboBox();
            LoadCarrierComboBox();
            LoadCarrierServiceComboBox();
            LoadCountryComboBox();
            LoadProvinceComboBox();
            LoadCityComboBox();

            MainLayoutGroup.SelectedTabIndex = 0;
            TitleTextEdit.Focus();
        }
 protected override void OnEditing()
 {
     FmHeaderLayoutGroup.HeaderTitle =
         HeaderService.GenerateEditHeaderTitle(UserControlTitle, _activeCity.Title);
     TitleTextEdit.Focus();
 }
Esempio n. 7
0
 protected override void OnNotEditingAndAdding()
 {
     TitleTextEdit.Focus();
     MainLayoutGroup.IsEnabled       = false;
     FmHeaderLayoutGroup.HeaderTitle = HeaderService.GenerateInactiveHeaderTitle(UserControlTitle);
 }