Ejemplo n.º 1
0
        public MainForm(FTObjects ftobjects)
        {
            Util.DBug2("MainForm", "Starting");
            this.m_FTObjects = ftobjects;
            Util.DBug2("I", "Requesting Monitor Group Info");
            List<MonitorGroupInfo> monitorGrList = m_FTObjects.GetAllMonitorGroupInfor();
            Util.DBug2("I", "Received Monitor Group Info " + monitorGrList.Count+" items ");

            InitializeComponent();
            Util.DBug2("MainForm", "Done initilize components");
            ftobjects.SetMainForm(this);
            Util.DBug2("MainForm", "Done SetMainForm");
            m_FTObjects.AddToCallList(this);
            Util.DBug2("MainForm", "Done AddToCallList");
            PanelFromMonitorGInfo pan = new PanelFromMonitorGInfo();
            Util.DBug2("MainForm", "Done new pan");
            pan.mainfor = this;
            MonitorGrouPanLis.PanelFromData = pan;
            Util.DBug2("MainForm", "Done pan from data");
            this.Monitpanel.Controls.Add(this.MonitorGrouPanLis);
            Util.DBug2("MainForm", "Add panels");
            this.MonitorGrouPanLis.Dock = DockStyle.Fill;
            if (monitorGrList.Count == 1)
            {
                Util.DBug2("MainForm", "Open monitor group");
                OpenMonitorGroup(monitorGrList[0].name);
            }
            else
            {
                Util.DBug2("MainForm", "Show chooser");
                showMonitorChoser(monitorGrList);
            }

            //    this.allVersionPanel1.P_FTObjects = this.m_FTObjects;
              //      this.calendarPanel1.P_FTObjects = this.m_FTObjects;
             //       this.searchPanel1.P_FTObjects = this.m_FTObjects;
              //      this.explorerTab1.P_FTObjects = this.m_FTObjects;
        }
Ejemplo n.º 2
0
 /// <summary>
 /// The purpose of thing function is to set FTObject but only
 /// the task gets it. This is so that taskAnswers canbe sent back
 /// </summary>
 public void SetFTBeforeOpenMonGr(FTObjects ftob)
 {
     this.taskChoose.SetFTOb(ftob);
     EPanelFromMonitorGInfo epan = new EPanelFromMonitorGInfo();
     epan.ftobjects = ftob;
     epan.mainForm = this;
     this.EMonitorGrouPanLis.PanelFromData = epan;
     abFTObjects = ftob;
     abFTObjects.SetMainForm(this);
     if (ftob.CheckLicense())
     {
         RemoveLicenseOption();
     }
 }