private void menuViewPixelData_Click(object sender, EventArgs e) { if (PixelForm == null || PixelForm.IsDisposed) { PixelForm = new PixelDialog(); PixelForm.Owner = this; PixelForm.Show(); Point p = pbxPhoto.PointToClient(Form.MousePosition); UpdatePixelDialog(p.X, p.Y); } }
private void mnuPixelData_Click(object sender, EventArgs e) { if (PixelForm == null || PixelForm.IsDisposed) { PixelForm = PixelDialog.GlobalInstance; PixelForm.Owner = this; } PixelForm.Show(); Point p = pbxPhoto.PointToClient(Form.MousePosition); UpdatePixelDialog(p.X, p.Y); UpdatePixelButton(true); }
private void menuPixelData_Click_1(object sender, EventArgs e) { if (PixelForm == null) { menuPixelData.Text = "Hide Pi&xel Data"; PixelForm = new PixelDialog(); PixelForm.Owner = this; PixelForm.Show(); Point p = pbxPhoto.PointToClient(Form.MousePosition); UpdatePixelDialog(p.X, p.Y); } else { menuPixelData.Text = "Pi&xel Data..."; PixelForm.Close(); PixelForm = null; } }
private void menuPixelData_Click(object sender, EventArgs e) { // Only check for null as we count on the menuPhoto Opening // handler to adjust the PixelForm variable when the user // closes the dialog manually. if (PixelForm == null) { menuPixelData.Text = "Hide Pi&xel Data"; PixelForm = new PixelDialog(); PixelForm.Owner = this; PixelForm.Show(); Point p = pbxPhoto.PointToClient(Form.MousePosition); UpdatePixelDialog(p.X, p.Y); } else { menuPixelData.Text = "Pi&xel Data..."; PixelForm.Close(); PixelForm = null; } }