Beispiel #1
0
        private void CommonConstructor(ParentForm parent, bool visible)
        {
            parentForm = parent;
            InitializeComponent();
            SetRequiredValues();

            cmbxPrinter.Items.AddRange(namesofprinters);
            cmbxPrinter.SelectedItem = PreferredPrinter;
            cmbxPrinter.Text         = PreferredPrinter;

            StartPosition = FormStartPosition.CenterScreen;
            ShowDialog();
        }
Beispiel #2
0
        public StartPageForm(ParentForm parent)
        {
            parentForm = parent;
            Size size = new Size(parent.tabControl.ClientSize.Width, parent.tabControl.ClientSize.Height);

            InitialiseStartPage(size, parent);

            parent.SizeChanged += delegate
            {
                //SuspendLayout();
                Size parentSize = Parent.Size;
                SetControlSizesAndPositions(parentSize);
                //ResumeLayout();
            };
        }
Beispiel #3
0
        private void InitialiseStartPage_MiddlePanel(SplitterPanel parent, ParentForm parentForm)
        {
            parent.BackColor = Color.Silver;

            spContentForm     = new StartPageContentForm(parent, parentForm);
            spWalkthroughForm = new StartPageWalkthroughForm(parent);
            spWhatsNewForm    = new StartPageWhatsNewForm(parent);

            spContentForm.Visible = true;
            spContentForm.BringToFront();
            parent.SizeChanged += delegate
            {
                spContentForm.Size = new Size(parent.Width, parent.Height);
            };
        }
Beispiel #4
0
 public SermonViewNew(ParentForm parent)
 {
     CommonConstructor(parent);
 }
Beispiel #5
0
        public static void CreateNewSermon(ParentForm parent)
        {
            SermonViewNew sermonView = new SermonViewNew(parent);

            parent.AddNewTabPage(sermonView);
        }
Beispiel #6
0
 public PreferencesForm(ParentForm par, bool show)
 {
     parentForm = par;
     CommonConstructor(show);
 }