Exemplo n.º 1
0
        private void btnMaterialList_Click(object sender, EventArgs e)
        {
            MaterialTreeView mTree = new MaterialTreeView();

            mTree.ShowDialog();

            txtQuery.Text          = mTree.barCode;
            cmbQuery.SelectedIndex = 1;
        }
Exemplo n.º 2
0
        private void LoadMaterialTreeView()
        {
            treeFrm                 = new MaterialTreeView();
            treeFrm.TopLevel        = false;
            treeFrm.Visible         = true;
            treeFrm.FormBorderStyle = FormBorderStyle.None;

            treeFrm.Parent = this.splitContainer1.Panel1;
            treeFrm.Width  = this.splitContainer1.Panel2.Width;
            treeFrm.Height = this.splitContainer1.Panel2.Height;
            //treeFrm.Dock = DockStyle.Fill;
            splitContainer1.Panel1.Controls.Add(treeFrm);
            treeFrm.Dock = DockStyle.Fill;
            treeFrm.materialSelectNodify = SelectNodify;
        }