private void MenuPixelData_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); }