Пример #1
0
 private void Form_OnShown(object sender, EventArgs e)
 {
     if (this.Owner != null)
     {
         this.StartPosition = FormStartPosition.Manual;
         LayoutHelper.CenterBothInScreen(this, this.Owner);
     }
 }