Пример #1
0
        private void MainGrid_OnMouseUp(object sender, MouseButtonEventArgs e)
        {
            HistoryTable Current = MainGrid.SelectedItem as HistoryTable;
            BrowserTab   NewTab  = new BrowserTab();

            NewTab.Browser.Address = Current.URL;
            (Tag as MainWindow).Tabs.Items.Add(NewTab);
            this.Close();
        }
Пример #2
0
        private void GridLoad(object sender, RoutedEventArgs e)
        {
            List <HistoryTable> tables = new List <HistoryTable>(3);

            History[] AllHistory = History.GetHisttory(HistoryPath);
            foreach (var CurrentHistory in AllHistory.Reverse())
            {
                if (CurrentHistory != null)
                {
                    if (CurrentHistory.URL != "")
                    {
                        HistoryTable currentTable = new HistoryTable(CurrentHistory.URL, CurrentHistory.TdateTime);
                        tables.Add(currentTable);
                    }
                }
            }
            MainGrid.ItemsSource    = tables;
            MainGrid.MaxColumnWidth = 628;
        }