public static SupportingFilesForm ShowForm(Form parent, BlogPostEditingManager editingManager) { SupportingFilesForm supportingFilesForm = new SupportingFilesForm(); parent.AddOwnedForm(supportingFilesForm); supportingFilesForm.Show(); Point location = parent.Location; Size size = parent.Size; supportingFilesForm.Location = new Point(location.X + size.Width + 2, location.Y); supportingFilesForm.BlogPostEditingManager = editingManager; return supportingFilesForm; }
public static SupportingFilesForm ShowForm(Form parent, BlogPostEditingManager editingManager) { SupportingFilesForm supportingFilesForm = new SupportingFilesForm(); parent.AddOwnedForm(supportingFilesForm); supportingFilesForm.Show(); Point location = parent.Location; Size size = parent.Size; supportingFilesForm.Location = new Point(location.X + size.Width + 2, location.Y); supportingFilesForm.BlogPostEditingManager = editingManager; return(supportingFilesForm); }