private void Button_Click_SiteOwner(object sender, RoutedEventArgs e)
        {
            SiteOwner SO = new SiteOwner();

            SO.Show();
            this.Visibility = Visibility.Collapsed;
        }
示例#2
0
        public SiteOwnerPanel(Login loginExist)
        {
            MaxHeight = SystemParameters.MaximizedPrimaryScreenHeight;
            App.numOfActivatedMainWindow++;
            FlowDirection         = FlowDirection.LeftToRight;
            WindowStartupLocation = WindowStartupLocation.CenterScreen;
            InitializeComponent();

            ListViewHostList.ItemsSource = _instance.GetAllHostingUnits();

            SystemCommands.MaximizeWindow(this);
            SiteOwnerWindow = new SiteOwner
            {
                OwnerLogin = new Login
                {
                    UserName = loginExist.UserName,
                    Password = loginExist.Password
                }
            };
            GridSiteOwner.DataContext = SiteOwnerWindow;
        }