public frmStationEmulatorFunctionTest(StationEmulator_8960 se)//IStationEmulatorConnector Connector)
 {
     InitializeComponent();
     se8960 = se;
     //connector = Connector;
     Logger.LiveLogEventHandler += new EventHandler <LoggerLiveMessageEventArgs>(showLiveLogMessage);
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="selectedMode">0= GSM/GPRS/WCDMA , 1=TD-SCDMA</param>
 public static void SetSettings(
     StationEmulator_8960 se,                        //IStationEmulatorConnector stationConnector,
     int selectedMode,
     ProcedureProcessor_8960 process)
 {
     if (me == null || me.IsDisposed)
     {
         me = null;
         me = new frmStationEmulatorInitialization();
     }
     me.readConfig(me.defaultConfigPath);
     me.se8960 = se;
     //me.btnGSM.Enabled = selectedMode == 0 || selectedMode==2;
     //me.btnTD_SCDMA.Enabled = selectedMode == 1;
     me.process_8960         = process;
     me.numModifyDelay.Value = ProcedureProcessor_8960.cellModifyDelay;
     me.numDialTimeout.Value = ProcedureProcessor_8960.defaultDialTimeout;
     me.numCellPower.Value   = (int)ProcedureProcessor_8960.defaultCellPower;
     me.numAdjustSignalStrengthCheckInterval.Value   = ProcedureProcessor_8960.adjustSignalStrength_CheckSignalStrengthInterval;
     me.numAdjustSignalStrengthInaccuracy.Value      = ProcedureProcessor_8960.adjustSignalStrength_Inaccuracy;
     me.numAdjustSignalStrengthModifyDealy.Value     = ProcedureProcessor_8960.adjustSignalStrength_ModifyStrengthDelay;
     me.numAdjustSignalStrengthPassingCriteria.Value = ProcedureProcessor_8960.adjustSignalStrength_HitTargetPassingCriteria;
     me.numAdjustSignalStrengthRetryLimit.Value      = ProcedureProcessor_8960.adjustSignalStrength_RetryLimit;
     me.numAdjustSignalStrengthTimeout.Value         = ProcedureProcessor_8960.adjustSignalStrength_TimeoutInSeconds;
     me.Show();
 }
Exemple #3
0
 public frmDutSignal(clsDevice device, StationEmulator_8960 se)//IStationEmulatorConnector connector)
 {
     InitializeComponent();
     //currentConnector = connector;
     se8960 = se;
     cmbSimSlot.DataSource = Enum.GetValues(typeof(Wwan_TestCaseInfo.SimSlot));
     androidDevice         = device;
     if (cmbSimSlot.Items.Count > 0)
     {
         cmbSimSlot.SelectedIndex = 0;
     }
 }
 public static void Display(StationEmulator_8960 se8960)//GPIB_Connector connector)
 {
     if (me == null)
     {
         me = new frmStationEmulatorFunctionTest(se8960);
     }
     else if (me.IsDisposed)
     {
         me.Close();
         me = null;
         me = new frmStationEmulatorFunctionTest(se8960);
     }
     me.Show();
 }
Exemple #5
0
 public static void Display(clsDevice androidDevice, StationEmulator_8960 se)//IStationEmulatorConnector connector)
 {
     if (me == null)
     {
         me = new frmDutSignal(androidDevice, se);
     }
     else
     {
         if (me.IsDisposed)
         {
             me.Close();
             me = null;
             me = new frmDutSignal(androidDevice, se);
         }
     }
     //ADB_Process.StartPhoneStateReceiverService_MC36("");
     me.Show();
 }