Exemple #1
0
        private void TextBox_Edit(object sender, EventArgs e)
        {
            SermonViewNew sermonViewEdit = new SermonViewNew(parentForm);

            sermonViewEdit.SetEditingValues(SermonComponents);

            foreach (TabPage tabpage in parentForm.tabControl.TabPages)
            {
                if (tabpage.Name == sermonViewEdit.Name)
                {
                    parentForm.tabControl.TabPages.Remove(tabpage);
                    break;
                }
            }
            parentForm.AddNewTabPage(sermonViewEdit);
        }
Exemple #2
0
        private void StartTreeNode_DoubleClick(object sender, TreeNodeMouseClickEventArgs e)
        {
            if (e.Button == MouseButtons.Left)
            {
                switch (e.Node.Text.ToUpper())
                {
                case "SERMON/BIBLE STUDY":
                    SermonViewNew.CreateNewSermon(parentForm);
                    break;

                case "SERIES":
                    Series series = new Series();
                    series.ShowDialog();
                    break;
                }
            }
        }
Exemple #3
0
        public static void CreateNewSermon(ParentForm parent)
        {
            SermonViewNew sermonView = new SermonViewNew(parent);

            parent.AddNewTabPage(sermonView);
        }
Exemple #4
0
 /// <summary>
 /// Occurs when the Sermon MenuItem is clicked.
 /// </summary>
 /// <param name="sender">Control that initiated the event.</param>
 /// <param name="e">Event arguments.</param>
 public void SermonToolStripMenuItem_Click(object sender, EventArgs e)
 {
     SermonViewNew.CreateNewSermon(this);
 }