Пример #1
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();
 }
Пример #2
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;
 }
Пример #3
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));
 }
Пример #4
0
 public AntennaXLSExportManager(IAntennas<AntennaEntity> ants)
 {
     this.m_antennas = ants;
 }
Пример #5
0
 public AntennaDataVerify(IAntennas<AntennaEntity> ants)
 {
     this.m_iantennas = ants;
 }