public RemoveContractWindow() { bl = FactorySingletonBL.GetBL(); contract = new Contract(); DataContext = contract; InitializeComponent(); comboBox.ItemsSource = bl.Get_Contract_List(); datalist.ItemsSource = bl.Get_Contract_List(); comboBox.DisplayMemberPath = "Code_Of_Contract"; comboBox.SelectedValuePath = "Code_Of_Contract"; }
public RemoveChildWindow() { bl = FactorySingletonBL.GetBL(); child = new Child(); DataContext = child; InitializeComponent(); datalist.ItemsSource = bl.Get_Child_List(); comboBox.ItemsSource = bl.Get_Child_List(); comboBox.DisplayMemberPath = "ID"; comboBox.SelectedValuePath = "ID"; }
public RemoveMotherWindow() { bl = FactorySingletonBL.GetBL(); mother = new Mother(); DataContext = mother; InitializeComponent(); comboBox.ItemsSource = bl.Get_M_list(); comboBox.DisplayMemberPath = "ID"; comboBox.SelectedValuePath = "ID"; datalist.ItemsSource = bl.Get_M_list(); }
public RemoveNannyWindow() { bl = FactorySingletonBL.GetBL(); nanny = new Nanny(); DataContext = nanny; InitializeComponent(); comboBox.ItemsSource = bl.Get_N_list(); datalist.ItemsSource = bl.Get_N_list(); comboBox.DisplayMemberPath = "ID"; comboBox.SelectedValuePath = "ID"; }
public MainWindow() { InitializeComponent(); instance = FactorySingletonBL.getInstance(); }