コード例 #1
0
        public HostSingIn()
        {
            InitializeComponent();

            HostDetails_UserControl hostDetails_UserControl = new HostDetails_UserControl();

            MainGrid.Children.Add(hostDetails_UserControl);
        }
コード例 #2
0
        public HostSingIn()
        {
            try
            {
                InitializeComponent();

                HostingUnit hostingUnit = new HostingUnit();
                hostingUnit.Owner = new Host();
                hostingUnit.Owner.BankBranchDetails = new Bankdetails();

                HostDetails_UserControl hostDetails_UserControl = new HostDetails_UserControl(hostingUnit);
                UcGrid.Children.Add(hostDetails_UserControl);
                UcGrid.DataContext = hostingUnit.Owner;
            }
            catch (Exception ex) { MessageBox.Show(ex.Message); }
        }