private object GetSessionDialog()
{
SessionDialogContainer sdc = LifetimeService.Instance.Container.Resolve<SessionDialogContainer>();//13Feb2013
string dialogkey = TemplateFileName + UIController.GetActiveDocument().FileName + UIController.GetActiveDocument().Name;
object obj=null;
if (sdc.SessionDialogList.ContainsKey(dialogkey))
{
obj = sdc.SessionDialogList[dialogkey];//gets the exisiting dialog
//isOldDialog = true;
}
return obj;
}
//Send executed command to output window. So, user will know what he executed