示例#1
0
        private void  前を付けて保存AToolStripMenuItem_Click(object sender, EventArgs e)
        {
            NewTitle newTitle = new NewTitle();

            newTitle.newTitle = this.attributeName;
            if (DialogResult.OK == newTitle.ShowDialog(this))
            {
                if (String.IsNullOrEmpty(newTitle.newTitle))
                {
                    MessageBox.Show("新規タイトルが空です");
                    return;
                }
                else
                {
                    this.listBox1_Index.Items.Add(newTitle.newTitle);
                    foreach (String val in richTextBox1.Lines)
                    {
                        XML.appendXML(newTitle.newTitle, val);
                    }

                    this.CommitXMLData();
                    SystemFunction_INIT();
                    this.listBox1_Index.SelectedItem = newTitle.newTitle;
                }
            }
        }
示例#2
0
        private void 新規作成NToolStripMenuItem_Click(object sender, EventArgs e)
        {
            NewTitle newTitle = new NewTitle();

            newTitle.ShowDialog(this);
            if (DialogResult.OK == newTitle.DialogResult)
            {
                if (String.IsNullOrEmpty(newTitle.newTitle))
                {
                    MessageBox.Show("新規タイトルが空です");
                    return;
                }
                else
                {
                    this.listBox1_Index.Items.Add(newTitle.newTitle);
                    XML.appendXML(newTitle.newTitle, String.Empty);
                    this.listBox1_Index.SelectedItem = newTitle.newTitle;
                }
            }
        }