Пример #1
0
 private void ShowOpenTable(NetWorkType netType)
 {
     ServiceTableControl editor = new ServiceTableControl(this.m_Model, this.m_ServiceTreeNodeCtrl.FindServiceListByNetType(netType), netType);
     string tableName = netType.ToString() + " Services Table";
     TableForm form = (TableForm) ProjectSingleton.FindProjectForm(tableName);
     if (form == null)
     {
         form = new TableForm(tableName, editor, "Name");
     }
     else
     {
         form.TableEditor.ClearModuleEvent();
         form.TableEditor = null;
         form.TableEditor = editor;
     }
     form.TabText = ProjectSingleton.CurrentProject.Name + ":" + tableName;
     form.DgvBase.OnOpenTable(null);
     form.DgvBase.ServiceCustom.ServiceCustomDic[DgvServiceEnum.ImportAndExport] = false;
     form.HideOnClose = true;
     form.LoadData();
     form.Show(ProjectSingleton.CurrentProject.DockPanel, DockState.Document);
 }
Пример #2
0
 private void ShowR99Table(NetWorkType netType)
 {
     UMTSR99BearerTabelFormEditor editor = new UMTSR99BearerTabelFormEditor(this.m_Model);
     TableForm form = (TableForm) ProjectSingleton.FindProjectForm("UMTS R99Bearer");
     if (form == null)
     {
         form = new TableForm("UMTS R99Bearer", editor, "Name");
     }
     else
     {
         form.TableEditor.ClearModuleEvent();
         form.TableEditor = null;
         form.TableEditor = editor;
     }
     form.TabText = ProjectSingleton.CurrentProject.Name + ":" + TrafficModelResource.TRAFFICMODEL_UMTS_R99BEARER_TABLE;
     form.DgvBase.OnOpenTable(null);
     form.HideOnClose = true;
     form.DgvBase.ServiceCustom.ServiceCustomDic[DgvServiceEnum.RecordProperties] = false;
     form.LoadData();
     form.Show(ProjectSingleton.CurrentProject.DockPanel, DockState.Document);
 }
Пример #3
0
 private void ShowMCSTable(LinkType linkType)
 {
     MCSTableFormEditor editor = new MCSTableFormEditor(this.m_Model, this.m_Model.McsManagement.MCSList, linkType);
     TableForm form = (TableForm) ProjectSingleton.FindProjectForm(linkType.ToString() + "MCS");
     if (form == null)
     {
         form = new TableForm(linkType.ToString() + "MCS", editor, null);
     }
     else
     {
         form.TableEditor.ClearModuleEvent();
         form.TableEditor = null;
         form.TableEditor = editor;
     }
     form.TabText = ProjectSingleton.CurrentProject.Name + ":" + linkType.ToString() + " " + TrafficModelResource.TRAFFICMODEL_LTEMCSTABLE;
     form.DgvBase.OnOpenTable(null);
     form.HideOnClose = true;
     form.LoadData();
     form.Show(ProjectSingleton.CurrentProject.DockPanel, DockState.Document);
 }
Пример #4
0
 private void ShowLteOpenTable(NetWorkType netType)
 {
     LTEServiceTableFormEditor editor = new LTEServiceTableFormEditor(this.m_Model, this.m_UnionPsManagement.FindUnionPsServiceList(netType));
     TableForm form = (TableForm) ProjectSingleton.FindProjectForm("LTEService");
     if (form == null)
     {
         form = new TableForm("LTEService", editor, "Name");
     }
     else
     {
         form.TableEditor.ClearModuleEvent();
         form.TableEditor = null;
         form.TableEditor = editor;
     }
     form.TabText = ProjectSingleton.CurrentProject.Name + ":" + TrafficModelResource.TRAFFICMODEL_SERVICESTABLE;
     form.DgvBase.OnOpenTable(null);
     form.DgvBase.ServiceCustom.ServiceCustomDic[DgvServiceEnum.ImportAndExport] = false;
     form.HideOnClose = true;
     form.LoadData();
     form.Show(ProjectSingleton.CurrentProject.DockPanel, DockState.Document);
 }
Пример #5
0
 private void mIMOToolStripMenuItem_Click(object sender, EventArgs e)
 {
     MIMOTableFormEditor editor = new MIMOTableFormEditor(this.m_Model, this.m_Model.MIMOManagement.MIMOList);
     TableForm form = (TableForm) ProjectSingleton.FindProjectForm("MIMO");
     if (form == null)
     {
         form = new TableForm("MIMO", editor, null);
     }
     else
     {
         form.TableEditor.ClearModuleEvent();
         form.TableEditor = null;
         form.TableEditor = editor;
     }
     form.TabText = ProjectSingleton.CurrentProject.Name + ":" + TrafficModelResource.TRAFFICMODEL_MIMOCONFIGRATION;
     form.DgvBase.OnOpenTable(null);
     form.HideOnClose = true;
     form.LoadData();
     form.Show(ProjectSingleton.CurrentProject.DockPanel, DockState.Document);
 }
Пример #6
0
 private void TDHSUPABearerToolMenuItem_Click(object sender, EventArgs e)
 {
     NetWorkType type = NetWorkType.TDSCDMA;
     TDHSUPABearerTableFormEditor editor = new TDHSUPABearerTableFormEditor(this.m_Model, this.m_Model.TDHSUPABearerManagement.TDHSUPABearerList);
     TableForm form = (TableForm)ProjectSingleton.FindProjectForm(type.ToString()+"HsupaBear");
     if (form == null)
     {
         form = new TableForm(type.ToString() + "TDHSUPABear", editor, "Name");
     }
     else
     {
         form.TableEditor.ClearModuleEvent();//todo
         form.TableEditor = null;
         form.TableEditor = editor;
     }
     form.DgvBase.ServiceCustom.ServiceCustomDic[DgvServiceEnum.RecordProperties] = false;
     form.TabText = ProjectSingleton.CurrentProject.Name + ":" + TrafficModelResource.TRAFFICMODEL_HSUPA_BEARER_STABLE;
     form.DgvBase.OnOpenTable(null);
     form.HideOnClose = true;
     form.LoadData();
     form.Show(ProjectSingleton.CurrentProject.DockPanel, DockState.Document);
 }
Пример #7
0
 private void TDhSDPABearerToolMenuItem_Click(object sender, EventArgs e)
 {
     TDHSDPABearerTableFormEditor editor = new TDHSDPABearerTableFormEditor(this.m_Model);
     TableForm form = (TableForm)ProjectSingleton.FindProjectForm("TDHSDPABearer");
     if (form == null)
     {
         form = new TableForm("TDHSDPABearer", editor, null);
     }
     else
     {
         form.TableEditor.ClearModuleEvent();
         form.TableEditor = null;
         form.TableEditor = editor;
     }
     form.TabText = ProjectSingleton.CurrentProject.Name + ":" + TrafficModelResource.TRAFFICMODEL_HSDPA_BEARER_TABLE;
     form.DgvBase.OnOpenTable(null);
     form.HideOnClose = true;
     form.LoadData();
     form.Show(ProjectSingleton.CurrentProject.DockPanel, DockState.Document);
 }