/// <summary> /// Set up loacation of the form. /// </summary> /// /// <param name="newModelForm"></param> public void CreateNewConsoleForm(CreateNewModelForm newModelForm) { Application.DoEvents(); this.shouldExist = true; // Set location of the frame. this.Location = new Point(newModelForm.DesktopLocation.X + newModelForm.Size.Width, newModelForm.DesktopLocation.Y); }
/// <summary> /// Forward user to createNewModel form when clicking on createNewModelSign. /// </summary> /// /// <param name="sender"></param> /// <param name="e"></param> private void CreateNewModelSign_MouseClick(object sender, MouseEventArgs e) { // Create form for model creation. this.formForCreatingNewModel = new CreateNewModelForm(this); // Hide current form. this.Visible = false; // Show new form. this.formForCreatingNewModel.Show(); }