Пример #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();
        }
Пример #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();
            };
        }
Пример #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);
            };
        }
Пример #4
0
 public SermonViewNew(ParentForm parent)
 {
     CommonConstructor(parent);
 }
Пример #5
0
        public static void CreateNewSermon(ParentForm parent)
        {
            SermonViewNew sermonView = new SermonViewNew(parent);

            parent.AddNewTabPage(sermonView);
        }
Пример #6
0
 public PreferencesForm(ParentForm par, bool show)
 {
     parentForm = par;
     CommonConstructor(show);
 }