private void Details_DoubleClick(object sender, EventArgs e) { Forms.MiningDetailForm MiningDetail = new Forms.MiningDetailForm(); MiningDetail.X.Text = X.ToString(); MiningDetail.Y.Text = Y.ToString(); MiningDetail.Range.Text = Range.ToString(); MiningDetail.ShowDialog(); X = Convert.ToInt16(MiningDetail.X.Text); Y = Convert.ToInt16(MiningDetail.Y.Text); Range = Convert.ToUInt16(MiningDetail.Range.Text); MiningDetail.Dispose(); }