コード例 #1
0
ファイル: AdminLabel.cs プロジェクト: rogertoma/CarDepot
 public virtual void LoadPanel(IAdminObject item)
 {
     if (item == null)
     {
         Content = String.Empty;
     }
     else
     {
         Content = item.GetValue(PropertyId);
     }
 }
コード例 #2
0
ファイル: AdminTextBox.cs プロジェクト: rogertoma/CarDepot
        public void LoadPanel(IAdminObject item)
        {
            _item = item;

            if (item == null)
            {
                Text = String.Empty;
            }
            else
            {
                Text = item.GetValue(PropertyId);
                if (Text == string.Empty || Text == "")
                    this.MinWidth = UISettings.ADMINTEXTBOX_MINSIZE_WHEN_NO_TEXT;
            }
        }
コード例 #3
0
ファイル: AdminDatePicker.cs プロジェクト: rogertoma/CarDepot
        public void LoadPanel(IAdminObject item)
        {
            _item = item;

            //if (item == null || item.GetValue(PropertyId) == null)
            //{
            //    SelectedDate = DateTime.Today;
            //}
            //else
            //{
            string date = item.GetValue(PropertyId);
            if (!string.IsNullOrEmpty(date))
                SelectedDate = DateTime.Parse(date);
            //}
        }
コード例 #4
0
        public void LoadPanel(IAdminObject item)
        {
            var customer = item as CustomerAdminObject;
            if (customer == null)
            {
                return;
            }

            _customer = customer;

            LoadAllChildren(ContactCardGrid, item);

            addtionalContentControl.ListChanged += addtionalContentControl_ListChanged;

            Dictionary<VehicleCacheSearchKey, string> searchParam = new Dictionary<VehicleCacheSearchKey, string>();
            searchParam.Add(VehicleCacheSearchKey.CustomerId, item.GetValue(PropertyId.Id));

            VehicleCache cache = new VehicleCache(Settings.VehiclePath, searchParam);
            LstCustomerVehicles.SetContent(cache);
        }