public virtual void LoadPanel(IAdminObject item) { if (item == null) { Content = String.Empty; } else { Content = item.GetValue(PropertyId); } }
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; } }
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); //} }
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); }