コード例 #1
0
        public AspectWindowPane(IDEInterop ide)
        {
            try
            {
                this.ide = ide;
                KeyboardShortcutHelper.control = this;
                //Hardcoded language
                Thread.CurrentThread.CurrentUICulture = new CultureInfo("ru");
                InitializeComponent();
                Adapter       = new AspectCore.TreeViewAdapter(Manager, tvAspects);
                fmSelectPoint = new FmSelectPoint(ide, treeManager);

                SynchronizeUndoButtons();

                if (treeManager.GetParsersCount() == 0)
                {
                    GlobalData.traceAction(Strings.NoParsers);
                }

                GlobalData.traceAction("Загрузка плагина завершена");
                GlobalData.traceAction("Версия .net: " + System.Environment.Version);
                GlobalData.traceAction(System.Environment.Is64BitProcess ? "64-разрядный процесс" : "32-разрядный процесс");

                //костыль
                tvAspects.Scrollable = true;
            }
            catch (Exception exc)
            {
                ExceptionInfoHelper.ShowInfo(exc);
            }
        }