Example #1
0
        // ************************************************************
        public void ShowCaptionDialog()
        {
            if (m_SelectedIndex < 0)
            {
                return;
            }
            TextDialog dlg = new TextDialog();

            dlg.InitCaption();
            dlg.Value = m_List[m_SelectedIndex].Caption;
            if (dlg.ShowDialog() == DialogResult.OK)
            {
                m_List[m_SelectedIndex].Caption = dlg.Value;
            }
        }
Example #2
0
        // ************************************************************
        public void ShowTitleDialog()
        {
            if (m_List.Count <= 0)
            {
                return;
            }
            TextDialog dlg = new TextDialog();

            dlg.InitTitle();
            dlg.Value = m_MenuName;
            if (dlg.ShowDialog() == DialogResult.OK)
            {
                m_MenuName = dlg.Value;
                if (m_Form != null)
                {
                    m_Form.Text = m_MenuName;
                }
            }
        }