Exemplo n.º 1
0
        internal OutputDBTableData(TreeNode.DatabaseItemNode databaeItemNode)
        {
            m_databaeItemNode = databaeItemNode;
            InitializeComponent();

            list.ItemsSource = databaeItemNode.Children.FirstOrDefault(m => m is TreeNode.数据表Node).Children;
            list.SelectAll();
            list.Focus();
        }
Exemplo n.º 2
0
        internal ImportData(string filename, TreeNode.DatabaseItemNode databaseItemNode)
        {
            m_databaseItemNode = databaseItemNode;
            InitializeComponent();
            _filepath = filename;

            using (System.IO.BinaryReader br = new System.IO.BinaryReader(System.IO.File.OpenRead(filename)))
            {
                list.ItemsSource = br.ReadString().ToJsonObject <string[]>();
            }
            list.SelectAll();
            list.Focus();
        }