public static DialogResult Show(IWin32Window Owner, Frame Frame) { NewInteractionPointDialog nfd = new NewInteractionPointDialog() { frame = Frame }; nfd.name.Text = "Point" + Frame.InteractionPoints.Count; nfd.autosel.Checked = AutoSelect; return(nfd.ShowDialog(Owner)); }
private void createIPClick(object sender, EventArgs e) { if (SelectedFrame == null) { MessageBox.Show("You must create a frame first.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } if (NewInteractionPointDialog.Show(ParentForm, SelectedFrame) == DialogResult.OK) { refreshIP(); HitBox h = selectedFrame.InteractionPoints[SelectedFrame.InteractionPoints.Count - 1]; h.FrontColor = Color.FromArgb(120, ipColor.BackColor); if (NewInteractionPointDialog.AutoSelect) { ipSelector.SelectedIndex = SelectedFrame.InteractionPoints.Count - 1; } } }