public static BLImp GetBL() { if (bl == null) { bl = new BLImp(); } return(bl); }
/// <summary> /// This is the factory method of BLImp /// </summary> /// <returns>The <see cref="instance"/> of the singleton factory (singletory)</returns> static public IBL getBL() { if (instance == null) { instance = new BLImp(); return(instance); } return(instance); }
public UpdatePray() { InitializeComponent(); bl = BL.FactoryBL.GetBL(); p = new BE.Pray(); this.SynagoguecomboBox.ItemsSource = bl.GetAllSynagogues(); this.SynagoguecomboBox.DisplayMemberPath = "name"; }
public AddingPray() { InitializeComponent(); bl = BL.FactoryBL.GetBL(); p = new BE.Pray(); this.KindPraycomboBox.ItemsSource = Enum.GetValues(typeof(BE.KindPray)); this.SynagoguecomboBox.ItemsSource = bl.GetAllSynagogues(); this.SynagoguecomboBox.DisplayMemberPath = "name"; }
public static void Main(string[] args) { BLImp b = new BLImp(); }