Пример #1
0
        private void 编辑属性ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            DataGridViewColumn column = dataGridView.Columns[Cloumn_index];
            var row = dataGridView.Rows[Rowindex];

            selcetitem = new clsFile_Managermentinfo();

            var model = row.DataBoundItem as clsFile_Managermentinfo;

            selcetitem = model;

            if (selcetitem != null)
            {
                var form = new frmNewCreate("", tree_Current_row, selcetitem);
                if (form.ShowDialog() == DialogResult.OK)
                {
                    InitializeDataSource();
                }
            }
        }
Пример #2
0
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            try
            {
                string aa = tree_Current_row["NodeID"].ToString();
            }
            catch (Exception ex)
            {
                MessageBox.Show("选择下方类目才可以添加信息");
                return;

                throw;
            }
            var form = new frmNewCreate("", tree_Current_row, null);

            if (form.ShowDialog() == DialogResult.OK)
            {
                InitializeDataSource();
            }
        }