Beispiel #1
0
        private void refreshTab(string tableName)
        {
            TabItem tab = TabsControl.Items.OfType <TabItem>().SingleOrDefault(n => n.Header == tableName);

            if (tab != null)
            {
                tab.Content = null;
                AddTableTab(dataManipulator.GetTable(token, tableName), true, tab);
            }
        }
Beispiel #2
0
        public DataManipulation(string token, DataManipulator dataManipulator)
        {
            InitializeComponent();
            this.token           = token;
            this.dataManipulator = dataManipulator;
            listOfTables         = new List <Table>();

            foreach (var tableName in tableNames)
            {
                Table table = dataManipulator.GetTable(token, tableName);
                if (table != null)
                {
                    AddTableTab(table);
                    listOfTables.Add(table);
                }
            }
        }