예제 #1
0
        protected bool show_spo;                        // отображать или нет панель СПО

        /// <summary>
        /// Инициализирует новый экземпляр класса
        /// </summary>
        protected SgtApplication()
        {
            c_slim = new System.Threading.ReaderWriterLockSlim();

            works = new List <Work>();

            commutator = new Commutator();
            technology = new Technology();

            db_manager = new DataBaseManager();

            commutator.SaverTechData = technology.SaverTechnologyData;
            //commutator.onUpdated += new CommutatorEventHandler(technology.Calculate);

            technology.onComplete += new EventHandler(technology_onComplete);

            s_panel = new SpoPanel(this);
            d_panel = new DrillingPanel(this);

            sol_panel = new SolutionPanel(this);

            panels = new List <VPanel>();

            show_drilling = true;
            show_solution = true;
            show_spo      = true;
        }
예제 #2
0
        private TimeSpan tInterval = new TimeSpan(0, 0, 0, 15, 0); // время тишины для проигрывания файла

        #endregion Fields

        #region Constructors

        /// <summary>
        /// Инициализирует новый экземпляр класса
        /// </summary>
        protected SgtApplication()
        {
            c_slim = new System.Threading.ReaderWriterLockSlim();

            works = new List<Work>();

            commutator = new Commutator();
            technology = new Technology();

            db_manager = new DataBaseManager();

            commutator.SaverTechData = technology.SaverTechnologyData;
            //commutator.onUpdated += new CommutatorEventHandler(technology.Calculate);

            technology.onComplete += new EventHandler(technology_onComplete);

            s_panel = new SpoPanel(this);
            d_panel = new DrillingPanel(this);

            sol_panel = new SolutionPanel(this);

            panels = new List<VPanel>();

            show_drilling = true;
            show_solution = true;
            show_spo = true;
        }