예제 #1
0
 public static string GetSectionName(string name)
 {
     SectionName form = new SectionName();
     form.SelectedName = name;
     if (form.ShowDialog() == DialogResult.Cancel)
         return string.Empty;
     else
         return form.SelectedName;
 }
예제 #2
0
        private void RenameSection()
        {
            string name = SectionName.GetSectionName(CurrentSection.Name);

            if (name != string.Empty)
            {
                CurrentSection.Name = name;
                UpdateDisplayedProject();
            }
        }
예제 #3
0
        private void AddSection()
        {
            string name = SectionName.GetSectionName();

            if (name != string.Empty)
            {
                Section s = new Section(mProject, name);
                mProject.Sections.Add(s);
                UpdateDisplayedProject();
                CurrentSection = s;
            }
        }
예제 #4
0
        public static string GetSectionName(string name)
        {
            SectionName form = new SectionName();

            form.SelectedName = name;
            if (form.ShowDialog() == DialogResult.Cancel)
            {
                return(string.Empty);
            }
            else
            {
                return(form.SelectedName);
            }
        }
예제 #5
0
        private void DuplicateSection()
        {
            string name = SectionName.GetSectionName();

            if (name != string.Empty)
            {
                Section s = CurrentSection.Clone();
                s.Name = name;
                mProject.Sections.Add(s);

                UpdateDisplayedProject();
                CurrentSection = s;
            }
        }