private HUuserCuntrol makeReadOnly(HUuserCuntrol gruc) { gruc.hostingUnitName1TextBox.IsReadOnly = true; gruc.areatxtbx.IsReadOnly = true; gruc.commission1TextBox.IsReadOnly = true; gruc.hasChildrensAttractions1CheckBox.IsEnabled = false; gruc.hasPool1CheckBox.IsEnabled = false; gruc.hasJaccuzzi1CheckBox.IsEnabled = false; gruc.hasGarden1CheckBox.IsEnabled = false; return(gruc); }
public AddOrder(long hostkey, string user) { InitializeComponent(); if (hebEnglish.hebrew) { hebChange(); } hostingList = bl.GetAllHostingUnitsByHostKey(hostkey); username = user; scrollview1 = new ScrollViewer(); foreach (BE.HostingUnit item in hostingList) { HUuserCuntrol gruc = new HUuserCuntrol(item, hostkey); b.Children.Add(gruc); } scrollview1.Content = b; }