protected override void WndProc(ref System.Windows.Forms.Message m) { if (m.Msg == OpenViewMessage) { try { Segment s = new Segment("Dapple.OpenView", SharedMemoryCreationFlag.Attach, 0); string[] strData = (string[])s.GetData(); string strView = strData[0]; string strGeoTiff = strData[1]; string strGeoTiffName = strData[2]; bool bGeotiffTmp = strData[3] == "YES"; this.lastView = strData[4]; bool bKmlTmp = strData[5] == "YES"; string strKmlName = strData[6]; string strKmlFile = strData[7]; if (strView.Length > 0) OpenView(strView, strGeoTiff.Length == 0, true); if (strGeoTiff.Length > 0) AddGeoTiff(strGeoTiff, strGeoTiffName, bGeotiffTmp, true); if (strKmlName.Length > 0 && strKmlFile.Length > 0) AddKML(strKmlFile, strKmlName, bKmlTmp, false, null); } catch { } } base.WndProc(ref m); }