Game Development Reference
In-Depth Information
StringBuilder buffer = new StringBuilder();
buffer.AppendFormat(“Handle Command '{0}':{1}{1}”,
command,
Environment.NewLine);
foreach (string file in files)
{
string fileName = Path.GetFileName(file);
buffer.AppendFormat(“{0}{1}”, fileName, Environment.NewLine);
}
MessageBox.Show(buffer.ToString());
}
protected override void HandleError(Exception exception)
{
MessageBox.Show(exception.ToString());
}
[System.Runtime.InteropServices.ComRegisterFunctionAttribute()]
internal static void RegisterServer(string description)
{
try
{
RegisterExtension(typeof(SimpleToolExtension),
_extensions,
_handlerName);
}
catch (Exception e)
{
MessageBox.Show(exception.ToString();
}
}
[System.Runtime.InteropServices.ComUnregisterFunctionAttribute()]
internal static void UnregisterServer(string description)
{
try
{
UnregisterExtension(typeof(SimpleToolExtension),
_extensions,
_handlerName);
Search Nedrilad ::




Custom Search