private void genButton_Click(object sender, EventArgs e)
        {
            if (logX == null || logY == null || logZ == null)
            {
                MessageBox.Show("Error! Select three Logs!");
                return;
            }
            if (logX.SampleCount != logY.SampleCount ||
                logY.SampleCount != logZ.SampleCount)
            {
                MessageBox.Show("All logs must be of same Dimension!");
                return;
            }
            List <WellLogSample> listX = new List <WellLogSample>(logX.Samples);
            List <WellLogSample> listY = new List <WellLogSample>(logY.Samples);
            List <WellLogSample> listZ = new List <WellLogSample>(logZ.Samples);

            if (Math.Abs(listX[0].MD - listY[0].MD) >= 10E-4)
            {
                MessageBox.Show(logX.Name + " and " + logY.Name + "do not start at same Measured depth!");
                return;
            }
            if (Math.Abs(listX[0].MD - listZ[0].MD) >= 10E-4)
            {
                MessageBox.Show(logX.Name + " and " + logZ.Name + "do not start at same Measured depth!");
                return;
            }
            if (Math.Abs(listX[listX.Count - 1].MD - listY[listY.Count - 1].MD) >= 10E-4)
            {
                MessageBox.Show(logX.Name + " and " + logY.Name + "do not end at same Measured depth!");
                return;
            }
            if (Math.Abs(listX[listX.Count - 1].MD - listZ[listZ.Count - 1].MD) >= 10E-4)
            {
                MessageBox.Show(logX.Name + " and " + logZ.Name + "do not end at same Measured depth!");
                return;
            }
            CrossPlotter.CrossPlotUI plot = new CrossPlotter.CrossPlotUI(logX, logY, logZ);
            plot.Show();
            Invalidate();
        }
 private void genButton_Click(object sender, EventArgs e)
 {
     if (logX == null || logY == null || logZ == null)
     {
         MessageBox.Show("Error! Select three Logs!");
         return;
     }
     if (logX.SampleCount != logY.SampleCount ||
         logY.SampleCount != logZ.SampleCount)
     {
         MessageBox.Show("All logs must be of same Dimension!");
         return;
     }
     List<WellLogSample> listX = new List<WellLogSample>(logX.Samples);
     List<WellLogSample> listY = new List<WellLogSample>(logY.Samples);
     List<WellLogSample> listZ = new List<WellLogSample>(logZ.Samples);
     if (Math.Abs(listX[0].MD - listY[0].MD) >= 10E-4)
     {
         MessageBox.Show(logX.Name + " and " + logY.Name + "do not start at same Measured depth!");
         return;
     }
     if (Math.Abs(listX[0].MD - listZ[0].MD) >= 10E-4)
     {
         MessageBox.Show(logX.Name + " and " + logZ.Name + "do not start at same Measured depth!");
         return;
     }
     if (Math.Abs(listX[listX.Count - 1].MD - listY[listY.Count - 1].MD) >= 10E-4)
     {
         MessageBox.Show(logX.Name + " and " + logY.Name + "do not end at same Measured depth!");
         return;
     }
     if (Math.Abs(listX[listX.Count - 1].MD - listZ[listZ.Count - 1].MD) >= 10E-4)
     {
         MessageBox.Show(logX.Name + " and " + logZ.Name + "do not end at same Measured depth!");
         return;
     }
     CrossPlotter.CrossPlotUI plot = new CrossPlotter.CrossPlotUI(logX, logY, logZ);
     plot.Show();
     Invalidate();
 }