void thisBox_Click(object sender, EventArgs e) { Coordinates_Form showForm = new Coordinates_Form(isMap); showForm.Set_Coordinates(coordObject); showForm.Read_Only = read_only; showForm.ShowDialog(); if (showForm.Changed) { OnDataChanged(); } show_coord_value(); }
void thisBox_KeyDown(object sender, KeyEventArgs e) { if ((e.KeyCode != Keys.Control) && (e.KeyCode != Keys.PrintScreen) && (e.KeyCode != Keys.Down)) { Coordinates_Form showForm = new Coordinates_Form(isMap); showForm.Set_Coordinates(coordObject); showForm.Read_Only = read_only; showForm.ShowDialog(); if (showForm.Changed) { OnDataChanged(); } show_coord_value(); } }