Example #1
0
        public static ScrollLog Create(string path)
        {
            if (_scrollLog == null)
            {
                _scrollLog = new ScrollLog(path);
            }

            return(_scrollLog);
        }
Example #2
0
        private void Init()
        {
            logger         = Logger.Create(LogType.INFO);
            scrollLog      = ScrollLog.Create(logger.LogPath);
            timer          = new Timer();
            timer.Interval = 10;


            this.StartPosition                = FormStartPosition.CenterScreen;
            ComboSolrCore.DropDownStyle       = ComboBoxStyle.DropDownList;
            ComboSolrCollection.DropDownStyle = ComboBoxStyle.DropDownList;

            TextBoxLog.ForeColor = System.Drawing.ColorTranslator.FromHtml("#00ff07");

            imageList = new ImageList();
            imageList.Images.Add("folder", Resource.folder);
            imageList.Images.Add("folder-close", Resource.folderclosed);
            imageList.Images.Add("file", Resource.file);

            tree.ImageList = imageList;
        }