Beispiel #1
0
        private TabPageInterface _tabInter; //Used to communicate between the project's TabPage

        #endregion Fields

        #region Constructors

        ///
        /// <summary>
        /// Constructor.
        /// Starts the edit button checking timer.
        /// </summary>
        public Main()
        {
            checkWput();
              InitializeComponent();
              _proInter = new ProjectInterface();   //Creates Project Interface.  Passes its own reference
              _tabInter = new TabPageInterface(this);
              _proInter.addTabRef(_tabInter);
              _tabInter.addProRef(_proInter);
              editBtnCheck();
        }
Beispiel #2
0
        private System.Timers.Timer editBtnTimer  = new System.Timers.Timer(1000); //Used for enabling disabling the edit button

        ///
        /// <summary>
        /// Constructor.
        /// Starts the edit button checking timer.
        /// </summary>
        public Main()
        {
            checkWput();
            InitializeComponent();
            _proInter = new ProjectInterface(); //Creates Project Interface.  Passes its own reference
            _tabInter = new TabPageInterface(this);
            _proInter.addTabRef(_tabInter);
            _tabInter.addProRef(_proInter);
            editBtnCheck();
        }
 public void addProRef(ProjectInterface proInterface)
 {
     _proInter = proInterface;
 }