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(); }
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(); }; }
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); }; }
public SermonViewNew(ParentForm parent) { CommonConstructor(parent); }
public static void CreateNewSermon(ParentForm parent) { SermonViewNew sermonView = new SermonViewNew(parent); parent.AddNewTabPage(sermonView); }
public PreferencesForm(ParentForm par, bool show) { parentForm = par; CommonConstructor(show); }