private void HideTextBox()
        {
            int selected = EditInnerFolders.SelectedIndex;

            if (selected > -1)
            {
                EditInnerFolders.Items[selected] = DynamicTextBox.Text;
            }

            DynamicTextBox.Hide();
        }
示例#2
0
        private void OpenFileButton_Click(object sender, EventArgs e)
        {
            QuestionsTextBox.Clear();
            AutorTextBox.Clear();
            ObjectTextBox.Clear();
            DynamicTextBox.Clear();
            openFile.ShowDialog();
            string path = openFile.FileName;

            parser.ParseFile(path);

            PrintObjects(parser.Objects);
            QuestionsTextBox.Text = parser.Questions;
            AutorTextBox.Text     = parser.Autor;
            Go.Enabled            = true;
        }
        private void ShowTextBox()
        {
            int selected = EditInnerFolders.SelectedIndex;

            if (selected > -1)
            {
                Rectangle rec = EditInnerFolders.GetItemRectangle(selected);
                Point     loc = EditInnerFolders.Location;

                DynamicTextBox.Location = new Point(loc.X + rec.X + 3, loc.Y + rec.Y + 7);
                DynamicTextBox.Size     = new Size(rec.Width, rec.Height);
                DynamicTextBox.Text     = (string)EditInnerFolders.Items[selected];
                DynamicTextBox.Show();
                DynamicTextBox.Focus();
                DynamicTextBox.SelectAll();
            }
        }