Example #1
0
        private CustomApplicationContext(string _DefaultTooltip
                                         , Bitmap _bmpIconFileName
                                         , ContextMenuBuilderDelegate _ContextMenuBuilderDelegate
                                         , OpenDelegate _OpenDelegate
                                         , DoubleClickDelegate _DoubleClickDelegate
                                         , OnExitAppDelegate _OnExitAppDelegate
                                         , string _sOpenMenueItemDisplayText)
        {
            m_bmpIconFileName            = _bmpIconFileName;
            m_DefaultTooltip             = _DefaultTooltip;
            m_ContextMenuBuilderDelegate = _ContextMenuBuilderDelegate;
            m_OpenDelegate              = _OpenDelegate;
            m_DoubleClickDelegate       = _DoubleClickDelegate;
            m_OnExitAppDelegate         = _OnExitAppDelegate;
            m_sOpenMenueItemDisplayText = _sOpenMenueItemDisplayText;

            InitializeContext();
        }
Example #2
0
 public static void InitCustomApplicationContext(string _DefaultTooltip
                                                 , Bitmap _bmpIconFileName
                                                 , ContextMenuBuilderDelegate _ContextMenuBuilderDelegate
                                                 , OpenDelegate _OpenDelegate
                                                 , DoubleClickDelegate _DoubleClickDelegate
                                                 , OnExitAppDelegate _OnExitAppDelegate
                                                 , string _sOpenMenueItemDisplayText)
 {
     try
     {
         instance = new CustomApplicationContext(_DefaultTooltip
                                                 , _bmpIconFileName
                                                 , _ContextMenuBuilderDelegate
                                                 , _OpenDelegate
                                                 , _DoubleClickDelegate
                                                 , _OnExitAppDelegate
                                                 , _sOpenMenueItemDisplayText);
     }
     catch (Exception exp)
     {
         Logger.WriteError(exp, "99fa623c-2fd1-40dd-93ba-752d1d69c857");
     }
 }