Example #1
0
 public AntForm(IAntennas<AntennaEntity> antennas)
 {
     this.m_IsCreatAnt = false;
     this.components = null;
     this.InitializeComponent();
     m_antennas = antennas;
     this.AntennaManege = new AntennaDataVerify(m_antennas);
     this.m_myAntenna = new AntennaEntity();
     this.m_myAntenna.Name = m_antennas.GetValideAntennaName();
     this.BindingToObject();
     this.DrawBackGround(this.panel_HGain);
     this.DrawBackGround(this.panel_VGain);
     this.DataGridViewDataErrorDealed(this.dgv_HGain);
     this.DataGridViewDataErrorDealed(this.dgv_VGain);
     this.m_IsCreatAnt = true;
     this.btn_App.Enabled = false;
 }
Example #2
0
 public AntennaConextMenuManager(IAntennas<AntennaEntity> Antennacollection)
 {
     this.components = null;
     this.m_externalFactory = new ExternalFactory();
     this.InitializeComponent();
     this.m_iantennas = Antennacollection;
     this.AntManage = new AntennaDataVerify(this.m_iantennas);
     this.contextMenuStrip_Child.Opening += new CancelEventHandler(this.contextMenuStrip_Child_Opening);
     this.m_ToolStripItemClick = new Dictionary<ToolStripItem, ToolStripItemClickedEventHandler>();
     this.m_ToolStripItemClick.Add(this.ToolStripMenuItem_CreateNew, new ToolStripItemClickedEventHandler(this.CreateNew_Click));
     this.m_ToolStripItemClick.Add(this.ToolStripMenuItem_ImportItem, new ToolStripItemClickedEventHandler(this.ImportAntenna_Click));
     this.m_ToolStripItemClick.Add(this.ToolStripMenuItem_ParentExport, new ToolStripItemClickedEventHandler(this.ParentExport_Click));
     this.m_ToolStripItemClick.Add(this.ToolStripMenuItem_properties, new ToolStripItemClickedEventHandler(this.PropertiesAntenna_Click));
     this.m_ToolStripItemClick.Add(this.ToolStripMenuItem_delete, new ToolStripItemClickedEventHandler(this.DeleteAntenna_Click));
     this.m_ToolStripItemClick.Add(this.ToolStripMenuItem_rename, new ToolStripItemClickedEventHandler(this.ModifyAntenna_Click));
     this.m_ToolStripItemClick.Add(this.ToolStripMenuItem_OpenTable, new ToolStripItemClickedEventHandler(this.OpenTable_Click));
     this.m_ToolStripItemClick.Add(this.ToolStripMenuItem_export, new ToolStripItemClickedEventHandler(this.Export_Click));
     this.m_ToolStripItemClick.Add(this.ToolStripMenuItem_duplicate, new ToolStripItemClickedEventHandler(this.Duplicate_Click));
 }
Example #3
0
 public AntForm(string antname, IAntennas<AntennaEntity> antennas)
 {
     this.m_IsCreatAnt = false;
     this.components = null;
     this.InitializeComponent();
     this.m_oldAntName = antname;
     m_antennas = antennas;
     this.AntennaManege = new AntennaDataVerify(m_antennas);
     this.BindingCollectionToObjects();
     this.SetPosition(antname);
     this.DataGridViewDataErrorDealed(this.dgv_HGain);
     this.DataGridViewDataErrorDealed(this.dgv_VGain);
     this.btn_App.Enabled = false;
     this.m_myAntenna = m_antennas.FindCloneAntennaByName(antname);
     this.BindingToObject();
 }
 public AntennaGroupContextMenuManager(AntennaCollection antCollection)
 {
     this.m_AntennaCollection = antCollection;
     this.AntManage = new AntennaDataVerify(this.m_AntennaCollection);
     this.InitializeComponent();
 }