예제 #1
0
        public void OpenItem(ListViewItem item)
        {
            TreeNode node;
            TreeNode child;

            if (item.Tag.ToString() == "D")
            {
                node = trvDir.SelectedNode;
                /* BeforeExpand Event */
                node.Expand();

                child = node.FirstNode;

                while (child != null)
                {
                    if (child.Text == item.Text)
                    {
                        /* BeforeSelect Event */
                        trvDir.SelectedNode = child;
                        trvDir.Focus();
                    }
                    child = child.NextNode;
                }
            }
            else if (item.Tag.ToString() == "F")
            {
                // Already Clicked Change
                fileDialog = new FormDetail();
                bool isTrue = SetDetail();
                if (isTrue)
                {
                    fileDialog.Show();
                }
            }
        }
예제 #2
0
        private void mnuMore_Click(object sender, EventArgs e)
        {
            fileDialog = new FormDetail();
            bool isTrue = SetDetail();

            if (isTrue)
            {
                fileDialog.Show();
            }
        }