To deploy visual studio addin you have to place the AddIn file in this directory:
My Documents\Visual Studio 2005\Addins\
Open the AddIn file. You will see XML seems the following:
<?xml version=”1.0″ encoding=”UTF-16″ standalone=”no”?>
<Extensibility xmlns=”http://schemas.microsoft.com/AutomationExtensibility”>
<HostApplication>
<Name>Microsoft Visual Studio</Name>
<Version>8.0</Version>
</HostApplication>
<Addin>
<FriendlyName>Sample Addin</FriendlyName>
<Description>Sample Addin Description</Description>
<Assembly>D:\mysampleaddin\bin\SampleAddin.dll</Assembly>
<FullClassName>SampleAddin.Connect</FullClassName>
<LoadBehavior>1</LoadBehavior>
<CommandPreload>1</CommandPreload>
<CommandLineSafe>0</CommandLineSafe>
</Addin>
</Extensibility>
Change the Assembly value to be the path of your addin DLL.
Change the full class name to be (<YourClassName>.Connect)
Then you will be ready to see your addin in the visual studio
May 16, 2008
To add a text from a resource file into your SharePoint ASPX page you have to place this code where ever you want this text to places.
<%$Resources:MyResource, MyName%>
where:
- MyResource: is the resource file name.
-MyName: is the resource entry key.
Your resource files must be placed in this directory:
..\12\CONFIG\Resources\
all resource files in this directory are copied to the global resources for every web application when it’s creating.
if the webapplication already exists place the resources files in this directory:
C:\Inetpub\wwwroot\wss\VirtualDirectories\<port>\App_GlobalResources\
where <port> is the the web application port
May 16, 2008
In this post, I will discuss the logic contained in the data layer. The data layer logic is all in stored procedures and functions.
First, Let us discuss the logic for the Languages table. The following stored procedures may be defined on the languages table:
- AddLanguage: Add new language to the system. You must take care that this stored procedure not only adds a record in the languages table but it also adds a record for that language into all child tables.
- DeleteLanguage: Delete language from the system. You need to remove all the records related to that language from child tables. You have to check also if it’s the default language for any user then he/she has to change it.
- UpdateLanguage: Update the details for a language.
- GetLanguageDetailsById: Retrieves all the language data using language ID.
- GetAllLanguages: Retrieves all the languages supported by the system.
Then we can define a group of stored procedures on every multilingual parent-child tables:
-
AddRecord: This stored procedure is defined on the parent child records. It first adds a record in the parent table then adds its child record for a specific language and adds empty child record for each other languages. This stored procedure may use two other stored procedures or functions:
- AddParentRecord.
- AddChildRecord.
-
UpdateRecord: Updates a parent record and one of its related child so it needs to take a language parameter. Also, it needs another two stored procedures:
- UpdateParentRecord.
- UpdateChildRecord.
-
DeleteRecord: Deletes a record from parent table and all of its related child records. Again, it needs the two stored procedures:
- DeleteParentRecord.
- DeleteChildRecord.
- GetRecoredByLang: Retrieves the parent record and one of its children defined using the language paramenter.
- GetAllRecoreds: Retrieves the parent record and all of its children.
After developing these procedures for all tables, you need to move to the data access layer. In this layer, you have to make functions that allows you to connect to the database and access your tables and stored procedures. It’s so basic and straight forward so I will skip it.
Next time, I will talk about the business logic.
May 16, 2008
After taking a look on the system, in this post I will describe the suggested design for the Data Layer.
In the data layer we need to have a place to store the languages included in the system. This design support dynamic number of languages even while the system is running. So, a table to store the languages is needed.

In this table we have the Language ID (LangID) that stored a number uniquely indentifies the language I think using the Local ID as LangID will be better or it can be added as a new column in the table. Then we have the language name stored the name of the language written in that language so this column must have NVarChar type. Also we have Language direction identify if the language displayed in right-to-Left or left-to-write order. This information can be retrieved from the CultureInfo object so we can neglect it from the table.
Sometimes the system users table has a column that refers to the default language for the user. Some times its gained from the current culture of the operating system deployed in the user machine. I think prefer storing it in the users table.

Let us move now for the most important part of the system. How to design the database to support multilingual content? First design your database without considering its multilingual. Then, for each table has columns may contain information varying from language to another: first: leave the columns that not depending on the language in the same table then add a new table have a composed primary key (the key from the parent table and the language) and move all the columns depending on the language into that table. So in the new table the parent table primary key will be a foreign key to the parent table.

So, if we have a branches table contains: branch id, name, address, manager and telephone number. We can put the branch ID, manager and telephone in the parent table. While the child table will contains branch ID, language, name and address. Branch ID is a primary key for the parent table. In the child table, the primary key is composed from branch ID and language. Branch ID is a foreign key in the child table.

So if we have the branch data as following:
|
ID
|
English Name
|
Arabic Name
|
Manager ID
|
Telephone
|
English Address
|
Arabic Address
|
|
1
|
Cairo Branch
|
فرع القاهرة
|
200
|
+2022000
|
Cairo
|
القاهرة
|
Then we need to add a record the branch table:
|
ID
|
Manager ID
|
Telephone
|
|
1
|
200
|
+2022000
|
And two records in the branch details table:
|
ID
|
Lang
|
Branch Name
|
Branch Address
|
|
1
|
1025
|
فرع القاهرة
|
القاهرة
|
|
1
|
1033
|
Cairo Branch
|
Cairo
|
In the next post I will continue the talk about the data layer
May 15, 2008
A lot of multinational companies and organizations in general have audiences around the world with different languages and cultures. These organizations have an increasing need to develop their information systems targeting these audiences with their own languages. Not only the interface but also the content of the system must match the audience language.
In this series I am suggesting a design for a multilingual system. This system has a multilingual content viewed in multilingual user interface. I used this design in many systems and was very useful. Especially when in case of medium to large systems. The systems done with this design are used in RTL and LTR orientation. But this model is design for windows application. I think it needs many modifications to fit to web based applications.
This design is designed in comply with Microsoft technologies. I tried to make it generic but when it gets specific it will tends to be Microsoftian. Because I made this design to be implemented with MS SQL and .NET technologies.
Let us start with a general overview on the system. The system is consisting of four layers:
- Database Layer.
- Data Access Layer
- Logic Layer.
- User Interface Layer.

The database layer deals with the multilingual content. Not only data structures but also the basic logic that manipulating the data. Data access layer is the layer used to retrieve data from database. Logic layer is the least layer that multilingual design affects but we will see that there are some modifications need to be done in this layer to be complied with the multilingual functionality. Finally the user interface layer is used to display the multilingual content but in a multilingual interface so the forms, messages…etc that used to view and take commands from user is also multilingual.
In the next post I will start with Data Layer ISA…
May 13, 2008
I think its the time to change…
Elfaysaliah is a very huge capital in KSA owning and sharing in a large number of well-known brands in KSA and Middle-East. Their employees passed the 5,000 in 1995. It’s owning 15 company and sharing in other 5 huge companies like Shuaa Capital and Audi in KSA. I applied to join there but I thought I have no chance to be there with these experienced team from many domains. After about a month, I found that mail from business integration manager in FBTC asking me if I want to join FBTC as a senior business integration engineer. I replayed with my agreement. After some interviews, I got the offer: Associate Technical Consultant, Business Integration.
The job responsibility is to assist a team of FBTC consultants by provide technical expertise in Microsoft development technologies and follow development best practices and document required technical artifacts related to projects. There is no limit in the technologies and experiences when we talk about business integration. Oracle, SAP , Web Sphere, Microsoft Servers, a lot of DBMS’s … more and more technologies used there in FBTC.
Now I have to take the decision, leaving the family of ITWorx and the guys in CodeLab or miss this great opportunity. Really, it was so hard decision because I love this environment: ITWorx and my best friends here in Egypt. I have to take the decision in a week.
Soon I made my decision I am leaving Egypt.
FBTC is an exceptional offer. First, in the salary (its really very important for me now). And it gives me a good push in the career path and experience. So, I have to leave for at least 3 years.
So… I am sorry ITWorx… I am leaving!!!
May 7, 2008
I got a phone from ITWorx HR, to make exams and interviews there next day. I was very happy and exited. First thing I did, was back to prepare for the exams at home. I remember that I slept less than four hours that day.
In the morning I went to ITWorx, I arrived about 9:00am. I found arround 16 person waiting for the exams. They told us that all of the exams and interviews will be today because they want to hire people urgently. There were 4 exams: Java, ASP.NET, Database and Object-Oriented Concepts. After finishing the exams the took the papers and correct them. They called my name, I went to HR person she told me you passed the exams and asked me to choose from working with Java or .Net. I choose (.Net) then they guided me to the waiting area. We were around 8.
Then they called my name for the first interview: Ahmed was waiting for me. He is a Team Leader. He has excellent technical knowledge. He asked me about every thing I think. One of the questions was How many lines of code you need to write a DB form? I wondered!!! Then I asked step by step question to get more information about the question. After I joined I asked him what is that question measured? He told me I want to know if you can ask questions to get the information you need or not!!! I am lucky to have that interview. I am the only one survived from the 3 persons Ahmed made interviews with.
After this interview I was waiting for the result in the waiting area when Osama called my name to make interview with him. Osama is also a Team Leader. He asked a technical questions about my past experiences. We also had a general IT chat.
Again I was in the waiting area when a HR person came and took me to SHREIF AAMER. Yes, Shreif Aamer. I made an interview with Shreif Aamer the vice president of ITWorx. It was a very friendly interview. But finally I have the honor of that Shreif Aamer approved my application form with “Accepted”.
It was 5:30pm. But I am ITWorxian now after 3years of dreaming to join this respectable company!!! I signed the contract to start the next Sunday 20-6-2006.
May 6, 2008
In the languages worked left-to-right (like Arabic) its not working well. (see the photos) You will notice that the words will not have the right order.

Also there are some bugs in the graphics in case of right-to-left:

May 4, 2008