public MainGUI(ref Core core) { this.core = core; InitializeComponent(); // create help dialog and pass in a reference to this object _helpDialog = new PatternHelpDialog(this); }
/// <summary> /// Shows the dialog with information for file naming pattern /// </summary> private void ShowHelpDialog() { if (null == _helpDialog) { _helpDialog = new PatternHelpDialog(this); } // set manual positioning _helpDialog.StartPosition = FormStartPosition.Manual; // place the dialog to the right from the main window int x = this.Location.X + this.Width; int y = this.Location.Y; _helpDialog.Location = new Point(x, y); // actually show the dialog _helpDialog.Show(); }