-
رد: ماهي الأدوات التي احتاجها معvb.net2008 ومن اين احصل عليها؟
بسم الله
>>بس ايش عمل الاداءه لانو رمزها زي علامة قفل ومفتاح
تضاف هذه الاداه من اجل التأكد من وجود ال License سواء اكانت ل ArcEngine development او وجود ArcView/ArcInfo/ArcEditor
هذا الكود يتم اضافته الى ال Form بعد اضافة MapControl من بداية الكود الى اخره لقد اضفت فقط الكود الخاص بال License
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ESRI.ArcGIS.esriSystem;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
IAoInitialize m_aoInit;
public Form1()
{
InitializeComponent();
m_aoInit = new AoInitializeClass();
if( m_aoInit.IsProductCodeAvailable(esriLicenseProduct Code.esriLicenseProductCodeArcView) == esriLicenseStatus.esriLicenseAvailable){
if ( m_aoInit.Initialize(esriLicenseProductCode.esriLic enseProductCodeArcView) != esriLicenseStatus.esriLicenseCheckedOut ){
MessageBox .Show ("Problem with the ArcGIS license. This application cannot run!");
this.Close();
return ;
}
} else {
MessageBox .Show ("You need an ArcGIS product installed to run this application!");
this.Close();
return ;
}
}
private void Form1_Load(object sender, EventArgs e)
{
}
}
}
ضوابط المشاركة
- لا تستطيع إضافة مواضيع جديدة
- لا تستطيع الرد على المواضيع
- لا تستطيع إرفاق ملفات
- لا تستطيع تعديل مشاركاتك
-
قوانين المنتدى