Exemplo n.º 1
0
        public MenuWindow()
        {
            InitializeComponent();
            downloadPath.setPath(downloadPath.GetEnvironmentalVariable());
            this.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterScreen;
            FileData datagrid       = new FileData(sharedGrid);
            FileData datagridShared = new FileData(itemsSharedWithMeGrid);

            datagrid.createDataGrid();
            datagridShared.createDataGrid();
            Treeview tree = new Treeview(whatToShareTreeView, sharedGrid);

            tree.Window_Loaded();
            SQLDAL.SQLDAL.ConnecToDB();
            sharedContentPanel.Visibility     = Visibility.Visible;
            sharedTreeViewPanel.Visibility    = Visibility.Visible;
            itemsSharedWithMePanel.Visibility = Visibility.Hidden;
            SharedDataGrid.Background         = Brushes.DimGray;
            TreeGrid.Background              = Brushes.DarkGray;
            sharedWithMe.Background          = Brushes.Transparent;
            ShareButtonPanel.Visibility      = Visibility.Visible;
            itemsSharedWithMeGrid.Visibility = Visibility.Hidden;
            downLoadPanel.Visibility         = Visibility.Hidden;
            wishListPanel.Visibility         = Visibility.Hidden;
            refreshPanel.Visibility          = Visibility.Hidden;
            searchPanel.Visibility           = Visibility.Hidden;
        }