private void ButtonHeightmapCreateNew_Click(object sender, RoutedEventArgs e)
        {
            if (machine.Mode == Machine.OperatingMode.Probe || Map != null)
            {
                return;
            }

            NewHeightMapDialog = new NewHeightMapWindow();

            if (ToolPath.ContainsMotion)
            {
                NewHeightMapDialog.ToolPathMin = ToolPath.MinFeed.GetXY();
                NewHeightMapDialog.ToolPathMax = ToolPath.MaxFeed.GetXY();
            }

            NewHeightMapDialog.Owner = this;

            NewHeightMapDialog.Size_Ok             += NewHeightMapDialog_Size_Ok;
            NewHeightMapDialog.SelectedSizeChanged += NewHeightMapDialog_SelectedSizeChanged;
            NewHeightMapDialog.Closed += NewHeightMapDialog_Closed;

            NewHeightMapDialog.Show();

            NewHeightMapDialog_SelectedSizeChanged();
        }
		private void ButtonHeightmapCreateNew_Click(object sender, RoutedEventArgs e)
		{
			if (machine.Mode == Machine.OperatingMode.Probe || Map != null)
				return;

			NewHeightMapDialog = new NewHeightMapWindow();
			NewHeightMapDialog.Owner = this;

			NewHeightMapDialog.Size_Ok += NewHeightMapDialog_Size_Ok;
			NewHeightMapDialog.SelectedSizeChanged += NewHeightMapDialog_SelectedSizeChanged;
			NewHeightMapDialog.Closed += NewHeightMapDialog_Closed;

			NewHeightMapDialog.Show();

			NewHeightMapDialog_SelectedSizeChanged();
		}
        private void ButtonHeightmapCreateNew_Click(object sender, RoutedEventArgs e)
        {
            if (machine.Mode == Machine.OperatingMode.Probe || Map != null)
            {
                return;
            }

            NewHeightMapDialog       = new NewHeightMapWindow();
            NewHeightMapDialog.Owner = this;

            NewHeightMapDialog.Size_Ok             += NewHeightMapDialog_Size_Ok;
            NewHeightMapDialog.SelectedSizeChanged += NewHeightMapDialog_SelectedSizeChanged;
            NewHeightMapDialog.Closed += NewHeightMapDialog_Closed;

            NewHeightMapDialog.Show();

            NewHeightMapDialog_SelectedSizeChanged();
        }