Example #1
0
 public WorkerBase(LogWriter logger,
                   ILogin login,
                   TaskSchedule task,
                   ApplicationControl appControl = null,
                   DataExpression expression     = null)
 {
     this.logger = logger;
     Login       = login;
     Setting     = task;
     if (appControl != null)
     {
         AppControl = appControl;
     }
     if (expression != null)
     {
         DataExpression = expression;
     }
     History = new TaskScheduleHistory
     {
         CompanyId     = login.CompanyId,
         ImportType    = task.ImportType,
         ImportSubType = task.ImportSubType,
         StartAt       = DateTime.Now /* get DB Server timestamp */
     };
 }
Example #2
0
        public CustomerGroupImporterWorker(
            LogWriter logger,
            ILogin login,
            TaskSchedule task,
            ApplicationControl appControl,
            DataExpression expression)
            : base(logger, login, task, appControl, expression)
        {
            var difinition = new CustomerGroupFileDefinition(expression);

            difinition.GetCustomerDictionary = val
                                               => Screen.Util.ConvertToDictionary(Screen.Util.GetCustomerList(Login, val), x => x.Code);
            difinition.GetDbCsutomerGroups = ()
                                             => Task.Run(async() => await Screen.Util.GetCustomerGroupListAsync(Login)).Result;
            var importer = difinition.CreateImporter(x => new { x.ParentCustomerId, x.ChildCustomerId });

            importer.UserId      = Login.UserId;
            importer.UserCode    = Login.UserCode;
            importer.CompanyId   = Login.CompanyId;
            importer.CompanyCode = Login.CompanyCode;
            importer.LoadAsync   = async() => await Screen.Util.GetCustomerGroupListAsync(Login);

            importer.RegisterAsync = async unitOfWork => await Screen.Util.ImportCustomerGroupAsync(Login, unitOfWork);

            importer.ErrorLogPath = logger.GetOutputPath();
            Importer = importer;
        }
Example #3
0
        internal static void CraeteNspd(Option option)
        {
            CreateNspdOption createNspd = option.CreateNspd;

            Program.DeleteIncludingJunctionDirectory(createNspd.OutputDirectory);
            Program.EnsureDirectoryWithJunction(createNspd.OutputDirectory, (string)null);
            Program.EnsureDirectoryWithJunction(createNspd.OutputDirectory + "/program0.ncd", (string)null);
            Program.EnsureDirectoryWithJunction(createNspd.OutputDirectory + "/program0.ncd/code", createNspd.CodeDirectory);
            Program.EnsureDirectoryWithJunction(createNspd.OutputDirectory + "/program0.ncd/data", createNspd.DataDirectory);
            Program.EnsureDirectoryWithJunction(createNspd.OutputDirectory + "/program0.ncd/logo", createNspd.LogoDirectory);
            Program.EnsureDirectoryWithJunction(createNspd.OutputDirectory + "/htmlDocument0.ncd", (string)null);
            Program.EnsureDirectoryWithJunction(createNspd.OutputDirectory + "/htmlDocument0.ncd/htmlDocument", createNspd.HtmlDocumentDirectory);
            Program.EnsureDirectoryWithJunction(createNspd.OutputDirectory + "/htmlDocument0.ncd/accessibleUrls", createNspd.AccessibleUrlsDirectory);
            Program.EnsureDirectoryWithJunction(createNspd.OutputDirectory + "/legalInformation0.ncd", createNspd.LegalInformationDirectory);
            string path1 = createNspd.OutputDirectory + "/control0.ncd";
            string str   = path1 + "/data";

            Program.EnsureDirectoryWithJunction(path1, (string)null);
            Program.EnsureDirectoryWithJunction(str, createNspd.ControlDirectory);
            ApplicationControl.Generate(createNspd.MetaFilePath, createNspd.IconFileList, createNspd.NxIconFileList, createNspd.NxIconMaxSize, str, false);
            string path2 = createNspd.OutputDirectory + "/meta0.ncd/data";

            Directory.CreateDirectory(path2);
            NintendoContentMetaBase nintendoContentMetaBase = new NintendoContentMetaBase(new List <Tuple <ISource, NintendoContentInfo> >(), createNspd.MetaType, createNspd.MetaFilePath);

            using (FileStream fileStream = Program.OpenNewFileStream(path2 + "/" + nintendoContentMetaBase.GetEntryName(), FileOptions.RandomAccess))
            {
                byte[] bytes = nintendoContentMetaBase.GetBytes();
                fileStream.Write(bytes, 0, bytes.Length);
            }
            string path2_1 = Path.GetFileNameWithoutExtension(createNspd.OutputDirectory) + ".nspd_root";

            using (File.Create(Path.Combine(Path.GetDirectoryName(createNspd.OutputDirectory), path2_1)))
                ;
        }
Example #4
0
        public static void MergeFiles(string[] sources, string destination, int vers = 2012)
        {
            // Initialize the API
            Program.ConsoleLog("Initializing NavisWorks...");
            ApplicationControl.ApplicationType = ApplicationType.SingleDocument;
            ApplicationControl.Initialize();

            // Create a document control
            using (var nwDocControl = new DocumentControl())
            {
                // Set the control as the primary document
                nwDocControl.SetAsMainDocument();
                var nwDoc = nwDocControl.Document;

                // Merge
                Program.ConsoleLog("Merging files...");
                if (nwDoc.TryMergeFiles(sources))
                {
                    Program.ConsoleLog("Merge Successful!");

                    // Save
                    Program.ConsoleLog("Saving {0}...", destination);
                    if (nwDoc.TrySaveFile(destination, GetVersion(vers)))
                    {
                        Program.ConsoleLog("{0} Saved successfully!", destination);
                    }
                }
            }

            // Terminate the API
            Program.ConsoleLog("Closing NavisWorks...");
            ApplicationControl.Terminate();
        }
Example #5
0
 public CustomerImporter(ILogin login, ApplicationControl appControl) : base(appControl)
 {
     Login       = login;
     CompanyId   = login.CompanyId;
     CompanyCode = login.CompanyCode;
     LoginUserId = login.UserId;
     InitializeHandlers();
 }
        public override byte[] ToBytes()
        {
            byte[] header = new byte[2];
            ApplicationControl.CopyTo(header, 0);
            header[1] = (byte)FunctionCode;

            return(header);
        }
Example #7
0
        private void sendBCD(uint address, uint value)
        {
            byte[] dataTx;
            ////////////// data link layer /////////////////////////////
            DataLink_Header DL = new DataLink_Header();

            DL.Control     = new ControlByte(0xC4); // user data (unconfirm);
            DL.Destination = 65535;
            DL.Source      = 1;

            ////////////// transport /////////////////////////////
            Transport_Header TH = new Transport_Header(0xc0); // transport alway 0xc4 for master

            ///////////// Application Header /////////////////////////////
            Application_Header AP = new Application_Header();
            // Application Control
            ApplicationControl AC = new ApplicationControl();

            AC.FIN = true;
            AC.FIR = true;
            AC.SEQ = 0;
            AP.ApplicationControl = AC;
            AP.FunctionCode       = 2; // Write Function = 2

            //////////////////////////// Object ////////////////////////////////
            //----------------------- Object Field---------------------------//
            Object_Field[] OF = new Object_Field[1]; //have 1 object type

            // Object Header //
            Object_Header OH;
            Qualifier     Q;
            ObjectData    OD;

            // Object Header 1 O:60 V:2
            OH                 = new Object_Header();
            OH.ObjectGroup     = 101;                 //Object
            OH.ObjectVariation = 2;                   // Var
            Q                  = new Qualifier(0x17); // Qualifier Code = 0x17 fixed
            OH.Qualifier       = Q;
            OH.Count           = 1;                   // have 1 data object
            OF[0]              = new Object_Field();
            OF[0].ObjectHeader = OH;                  // Object Header
            OD                 = new ObjectData();    //Data

            //Object Data
            OD.ObjData   = new O101V2(value);
            OF[0].Obj    = new ObjectData[1];
            OD.address   = address;
            OF[0].Obj[0] = OD;
            // move to application header class
            AP.Object = OF;

            ////////////////////////// DNP /////////////////////////////
            DNP_Frame dnpFrame = new DNP_Frame(DL, TH, AP);

            dataTx = dnpFrame.ToRawData();
            this.serialPort1.Write(dataTx, 0, dataTx.Length);
        }
Example #8
0
 public ReceiptImporterWorker(LogWriter logger,
                              ILogin login,
                              TaskSchedule task,
                              ApplicationControl applicationControl)
     : base(logger, login, task)
 {
     Importer = new ReceiptImporter(login, applicationControl);
     Importer.ImporterSettingId = task.ImportSubType;
 }
Example #9
0
 public ReceiptImporter(ILogin login, ApplicationControl applicationControl)
     : base(applicationControl)
 {
     Login       = login;
     CompanyId   = login.CompanyId;
     CompanyCode = login.CompanyCode;
     LoginUserId = login.UserId;
     Initialize();
 }
        public override byte[] ToBytes()
        {
            byte[] header = new byte[4];
            ApplicationControl.CopyTo(header, 0);
            header[1] = (byte)FunctionCode;
            InternalIndications.CopyTo(header, 2);

            return(header);
        }
Example #11
0
 public CustomerImporterWorker(
     LogWriter logger,
     ILogin login,
     TaskSchedule task,
     ApplicationControl appControl)
     : base(logger, login, task, appControl)
 {
     Importer = new CustomerImporter(Login, appControl);
 }
Example #12
0
        public static void Run()
        {
            ApplicationControl.DoLaunch();
            using (var game = new Xenko.Engine.Game())
            {
                game.Run();
            }

            ApplicationControl.DoShutdown();
        }
        public IntPtr GetSelectedAppHWND()
        {
            ApplicationControl ac = GetSelectedApplicationControl();

            if (ac != null && ac.HWND != IntPtr.Zero)
            {
                return(ac.HWND);
            }
            return(IntPtr.Zero);
        }
Example #14
0
        static void Main()
        {
            if (!ApplicationControl.Runnable("Binance"))
            {
                return;
            }

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new FrmMain());
        }
Example #15
0
        public Task <int> UpdateUseOperationLogDataAsync(ApplicationControl AppData, CancellationToken token = default(CancellationToken))
        {
            var query = @"
UPDATE ApplicationControl
   SET UseOperationLogging = @UseOperationLogging
     , UpdateBy = @UpdateBy
     , UpdateAt = GETDATE()
 WHERE CompanyId = @CompanyId
";

            return(dbHelper.ExecuteAsync(query, AppData, token));
        }
Example #16
0
 public PaymentScheduleImporterWorker(LogWriter logger,
                                      ILogin login,
                                      TaskSchedule task,
                                      ApplicationControl applicationControl)
     : base(logger, login, task)
 {
     Importer = new PaymentScheduleImporter(login, applicationControl);
     Importer.ImporterSettingId         = task.ImportSubType;
     Importer.DoReplaceAmount           = task.BillingAmount == 0;
     Importer.DoTargetNotMatchedData    = task.TargetBillingAssignment == 0;
     Importer.DoIgnoreSameCustomerGroup = task.UpdateSameCustomer == 0;
 }
        private void InitializeContent()
        {
            // works for clr, will it work on android?

            // http://android-developers.blogspot.com/2011/11/new-layout-widgets-space-and-gridlayout.html

            var r = default(global::ScriptCoreLib.Android.Windows.Forms.IAssemblyReferenceToken_Forms);

            var u = new ApplicationControl();

            u.AttachTo(this);
        }
Example #18
0
 private void Awake()
 {
     if (Instance == null)
     {
         Instance = this;
         InitializeFacebook();
     }
     else
     {
         Debug.LogError("There is already an instance of an ApplicationControl");
     }
 }
Example #19
0
 // Use this for initialization
 void Awake()
 {
     // ensure singleton
     if (instance == null)
     {
         instance = this;
     }
     else if (instance != this)
     {
         Destroy(gameObject);
     }
     DontDestroyOnLoad(gameObject);
 }
 public async Task <CountResult> SaveAsync(string sessionKey, ApplicationControl applicationControl)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(sessionKey, async token =>
     {
         var result = await applicationControlProcessor.UpdateUseOperationLogAsync(applicationControl, token);
         return new CountResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             Count = result,
         };
     }, logger));
 }
Example #21
0
        public static void Main(string[] args)
        {
            ApplicationControl.DoLaunch();
            Modules.Load("Main");
            var cli    = new ServerCommandLine();
            var server = Services.Get <Server>("Game.Server");

            server.Enable(31111);
            EventBus.Broadcast(null, new GameLoadEvent());
            server.Run();
            cli.Start();
            EventBus.Broadcast(null, new GameUnloadEvent());
            ApplicationControl.DoShutdown();
        }
        private void InitializeContent()
        {
            // works for clr, will it work on android?

            // http://android-developers.blogspot.com/2011/11/new-layout-widgets-space-and-gridlayout.html

            var r = default(global::ScriptCoreLib.Android.Windows.Forms.IAssemblyReferenceToken_Forms);

            var u = new ApplicationControl();

            u.AttachTo(this);


        }
 public async Task <ApplicationControlResult> AddAsync(string sessionKey, ApplicationControl applicationControl)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(sessionKey, async token =>
     {
         var result = await applicationControlProcessor.AddAsync(applicationControl, token);
         return new ApplicationControlResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             ApplicationControl = result,
         };
     }, logger));
 }
Example #24
0
        // Interface
        #region Interface
        //Note: If the user PC user the Global Proxy(IE Setup), this Function will fail
        public static bool startTCA(RunTimeError error, string addresss, string exePath = "")
        {
            try
            {
                #region ResvererCode
                tas = new ApplicationControl(addresss);
                string[] tsls = tas.GetTslList();
                if (tsls.Length == 0)
                {
                    tas.StartTsl();
                    tsls = tas.GetTslList();
                    if (tsls.Length == 0)
                    {
                        error.Errordescription = "Can not start TCA TSL";
                        return(false);
                    }
                }
                tsl = new TslControlClient(tsls[0]);
                #endregion
                #region TCA StartParameter

                #endregion
                try
                {
                    rumaClient = Tiger.Ruma.RumaControlClientFactory.CreateCustom(selectedCpriPorts, selectedTriggerPorts, rxPortBuffer,
                                                                                  RxIqBandWidth, TxIqBandWidth, totalRxBufferSize,
                                                                                  totalTxBufferSize, allocateAux, allocateDebugPort);
                }
                catch (System.Exception ex)
                {
                    rumaClient = Tiger.Ruma.RumaControlClientFactory.CreateDefault();
                }
                rCpriDataFlow    = rumaClient.CpriDataFlow;
                rCarrierConfig   = rumaClient.CarrierConfig;
                rCpriConfig      = rumaClient.CpriConfig;
                rServerBase      = rumaClient.PlatformUtilities;
                rTriggerConfig   = rumaClient.TriggerConfig;
                rRULoader        = rumaClient.OoM.RULoader;
                rDebugPortConfig = rumaClient.DebugPortConfig;
            }
            catch (System.Exception e)
            {
                error.Errordescription = "startTCA error : " + e.Message;
                return(false);
            }
            return(true);
        }
 public MatchingIndividualFileDefinition(ApplicationControl app) : this(new DataExpression(app))
 {
     if (CurrencyCodeField.Ignored = (app.UseForeignCurrency == 0))
     {
         CurrencyCodeField.FieldName = null;
     }
     if (ScheduledPaymentKeyField.Ignored = (app.UseScheduledPayment == 0))
     {
         ScheduledPaymentKeyField.FieldName = null;
     }
     if (SectionCodeField.Ignored = (app.UseReceiptSection == 0))
     {
         SectionCodeField.FieldName = null;
         SectionNameField.Ignored   = true;
         SectionNameField.FieldName = null;
     }
 }
        static void Main()
        {
            IApplicationContext context = ContextRegistry.GetContext();

            ApplicationControl = (ApplicationControl)context.GetObject("ApplicationControl");
            ApplicationControl.OnDataArrived   += ApplicationControlOnDataArrived;
            ApplicationControl.OnLogonArrived  += ApplicationControlOnLogonArrived;
            ApplicationControl.OnLogoutArrived += ApplicationControlOnLogOutArrived;
            ApplicationControl.SendLogonRequest(new Login {
                MarketDataProvider = MarketDataProvider.Blackwood
            });

            Console.ReadLine();
            ApplicationControl.Logout(new Logout {
                MarketDataProvider = MarketDataProvider.Blackwood
            });
        }
Example #27
0
        internal static void CreateNsp(Option option)
        {
            AuthoringConfiguration config    = option.Config;
            CreateNspOption        createNsp = option.CreateNsp;

            Directory.CreateDirectory(Path.GetDirectoryName(createNsp.OutputFile));
            if (createNsp.GeneratesApplicationControl)
            {
                ApplicationControl.Generate(createNsp.NspContentInfos[0].MetaFilePath, createNsp.NspContentInfos[0].IconList, createNsp.NspContentInfos[0].NxIconList, createNsp.NspContentInfos[0].NxIconMaxSize, createNsp.GetApplicationControlGeneratePath(), true);
            }
            string str = createNsp.InputAdfFile;

            if (str == null)
            {
                List <Pair <FilterType, Regex> > fdf = FilterDescription.ParseFdf(createNsp.InputFdfPath);
                str = Path.GetDirectoryName(createNsp.OutputFile) + "\\" + Path.GetFileName(createNsp.OutputFile) + ".adf";
                new NintendoSubmissionPackageAdfWriter(str).Write(createNsp.NspContentInfos, fdf);
            }
            if (createNsp.IsOnlyAdf)
            {
                return;
            }
            if (ContentArchiveLibraryInterface.GetArchiveType(str) != ArchiveFormatType.NintendoSubmissionPackage)
            {
                throw new FormatException("invalid formatType is indicated by .adf file.");
            }
            using (FileStream fileStream = Program.OpenNewFileStream(createNsp.OutputFile, FileOptions.RandomAccess))
                ContentArchiveLibraryInterface.CreateArchiveFromAdf((Stream)fileStream, str, config);
            if (!createNsp.IsSaveAdf)
            {
                File.Delete(str);
                foreach (string file in Directory.GetFiles(Path.GetDirectoryName(str), Path.GetFileNameWithoutExtension(str) + ".c?.*.nca.*adf"))
                {
                    File.Delete(file);
                }
            }
            if (!createNsp.GeneratesApplicationControl)
            {
                return;
            }
            Directory.Delete(createNsp.GetApplicationControlGeneratePath(), true);
        }
Example #28
0
    // actions to do when read QR
    private void ReadQR(Result result)
    {
        int id;

        if (!int.TryParse(result.Text, out id))
        {
            id = -1;
            Debug.Log("VAIR_ QR Code not a integer");
        }
        else
        {
            VRUser user;
            if (dbManager.SetupAndRead(id, out user))
            {
                isActive = false;
                camTexture.Stop();
                ApplicationControl.FoundUserOnDatabase(user);
            }
        }
    }
Example #29
0
        internal static void CraeteNspMeta(Option option)
        {
            CreateNspMetaOption createNspMeta = option.CreateNspMeta;

            if (createNspMeta.MetaType == "Application" || createNspMeta.MetaType == "Patch")
            {
                string outputDirectoryPath = createNspMeta.OutputDirectory + "/control0.ncd/data";
                ApplicationControl.Generate(createNspMeta.MetaFilePath, createNspMeta.IconFileList, createNspMeta.NxIconFileList, createNspMeta.NxIconMaxSize, outputDirectoryPath, true);
            }
            string path = createNspMeta.OutputDirectory + "/meta0.ncd/data";

            Directory.CreateDirectory(path);
            NintendoContentMetaBase nintendoContentMetaBase = new NintendoContentMetaBase(new List <Tuple <ISource, NintendoContentInfo> >(), createNspMeta.MetaType, createNspMeta.MetaFilePath);

            using (FileStream fileStream = Program.OpenNewFileStream(path + "/" + nintendoContentMetaBase.GetEntryName(), FileOptions.RandomAccess))
            {
                byte[] bytes = nintendoContentMetaBase.GetBytes();
                fileStream.Write(bytes, 0, bytes.Length);
            }
        }
Example #30
0
        static void Main()
        {
            String runtimeName = Resolver.TryBindToRuntime(RuntimeNames.Any);

            //Set to single document mode
            ApplicationControl.ApplicationType = ApplicationType.SingleDocument;

            //Initialise the api
            ApplicationControl.Initialize();
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            //Create Temp Folder for every user to use Npcc3i Files


            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new FrmNavisWorkAddProp());
            //Dispose of the DocumentControl
            //documentControl.Dispose();
            ApplicationControl.Terminate();
        }
Example #31
0
        private void AddRecentUsage(string id, int increment, bool saveChanges)
        {
            RecentUsage recentUsage = RecentUsages.FirstOrDefault(recent => (recent.ID == id));

            if (recentUsage != null)
            {
                recentUsage.Count += increment;
            }
            else
            {
                recentUsage = new RecentUsage(id, increment);
                RecentUsages.Add(recentUsage);
            }
            RecentUsages = RecentUsages.ToDictionary(recent => recent, recent => ApplicationControl.GetApplicationByID(recent.ID))
                           .OrderByDescending(recentPair => recentPair.Key.Count)
                           .ThenBy(recentPair => (recentPair.Value != null ? recentPair.Value.Name : recentPair.Key.ID))
                           .Select(recentPair => recentPair.Key).ToList();
            if (saveChanges)
            {
                RegistryHandler.SaveConfiguration(this, true);
            }
        }
        private void InitializeContent()
        {
            // http://android-developers.blogspot.com/2011/11/new-layout-widgets-space-and-gridlayout.html

            var r = default(global::ScriptCoreLib.Android.Windows.Forms.IAssemblyReferenceToken_Forms);

            var u = new ApplicationControl();

            u.AttachTo(this);

            u.button1.Click += delegate
            {
                //var temp = (__UserControl)(object)u;
                var popupView = new android.widget.LinearLayout(this);
                var dispWidth = getWindowManager().getDefaultDisplay().getWidth() - 60;

                var popupText = new TextView(this);
                popupText.setText("This is Popup Window!");
                popupText.setPadding(0, 0, 0, 20);
                popupText.setTextColor(-16711936);

                var popupFormsTextBox = new TextBox();
                popupFormsTextBox.PasswordChar = '*';
                ((__TextBox)(object)popupFormsTextBox).InternalBeforeSetContext(this);
                var t = ((__TextBox)(object)popupFormsTextBox).InternalGetElement();
                ((EditText)t).setWidth(dispWidth);
                

                var submitButt = new System.Windows.Forms.Button();
                submitButt.Text = "Submit";
                ((__Button)(object)submitButt).InternalBeforeSetContext(this);
                var b = ((__Button)(object)submitButt).InternalGetElement();

                var cancelButt = new System.Windows.Forms.Button();
                cancelButt.Text = "Cancel";
                ((__Button)(object)cancelButt).InternalBeforeSetContext(this);
                var cb = ((__Button)(object)cancelButt).InternalGetElement();

                popupView.addView(popupText);
                popupView.addView(t);
                popupView.addView(b);
                popupView.addView(cb);

                popupView.setOrientation(1);
                popupView.setBackgroundColor(-3355444);

                var popup = new android.widget.PopupWindow(popupView, dispWidth, 250);
                popup.setContentView(popupView);
                popup.setFocusable(true);
                popup.setOutsideTouchable(true);

                // E/AndroidRuntime( 4979): Caused by: java.lang.NoSuchMethodError: android.widget.PopupWindow.showAsDropDown
                popup.showAsDropDown(((__Button)(object)u.button1).InternalGetElement(), android.view.Gravity.CENTER, 40, 0);
                u.button1.Text = "Now popup must show!!";

                submitButt.Click += delegate
                {
                    submitButt.Text = ((EditText)t).getText().ToString();
                };

                cancelButt.Click += delegate
                {
                    popup.dismiss();
                };
            };



            ////// http://stackoverflow.com/questions/9784570/webview-inside-scrollview-disappears-after-zooming
            ////// http://stackoverflow.com/questions/8123804/unable-to-add-web-view-dynamically
            ////// http://developer.android.com/reference/android/webkit/WebView.html




            //this.ShowLongToast("http://jsc-solutions.net");

            //[javac] Compiling 527 source files to V:\bin\classes
            //[javac] V:\src\AndroidFormsActivity\ApplicationControl.java:129: error: cannot find symbol
            //[javac]         super.Dispose_06000006(disposing);
            //[javac]              ^
            //[javac]   symbol: method Dispose_06000006(boolean)
            //[javac] Note: V:\src\ScriptCoreLibJava\BCLImplementation\System\Threading\__Thread.java uses or overrides a deprecated API.
        }
Example #33
0
        //rumaster stasrtup
        private void Rumasterswitchbutton_Click(object sender, EventArgs e)
        {
            // Connect the the TigerApplication service using a local or remote IP address
                tas = new ApplicationControl("127.0.0.1");

                // Get a list with all started applications. If no application is running - start a new application
                string[] tsls = tas.GetTslList();
                if (tsls.Length == 0)
                {
                    tas.StartSpecifiedTsl(@"C:\Program Files\Ericsson\TCA\TSL.exe");
                    tsls = tas.GetTslList();
                }

                // Get attached hardware devices
                tsl = new TslControlClient(tsls[0]);
                string[] hwSnrs = tsl.GetHws();
                if (hwSnrs.Length == 0)
                {

                    throw new Exception("No hardwares detected!");

                }
                else
                {
                    string[] uris = tsl.GetServiceList(ToolType.ID_RUMA);
                    string toolUri;
                    WriteTraceText("uris is :"+ uris.Length.ToString());
                    if (uris.Length == 1)
                    {
                        toolUri = uris[0];
                    }
                    else if (uris.Length > 1)
                    {
                        toolUri = uris[uris.Length - 1];
                    }
                    else
                    {
                        toolUri = tsl.StartService(ToolType.ID_RUMA, hwSnrs[0]);
                    }

                    this.rumaClient = RumaControlClientFactory.Create(toolUri);
                    _TCA_ON = true;
                    this.icdf = this.rumaClient.CpriDataFlow;
                    this.rCarrierConfig = this.rumaClient.CarrierConfig;
                    this.rCpriConfig = this.rumaClient.CpriConfig;
                    this.rServerBase = this.rumaClient.PlatformUtilities;
                    this.tag_rumaster.BackColor = Color.SpringGreen;
                    this.rTriggerConfig = this.rumaClient.TriggerConfig;
                    this.rIRULoader = this.rumaClient.OoM.RULoader;

                }
            // Retrieve all running tool services. If no tool service is running - start a new tool

            //RUMA instance created, now start tool must be executed and resource needs to be allocated.

            //rumaClient.RuMaUtilities.SetCustomStartupParametersVee(selectedCpriPorts,

            //                                                    trigger1,

            //                                                    trigger2,

            //                                                    trigger3,

            //                                                    trigger4,

            //                                                    rxPortBuffer,

            //                                                    rxIqBandWidth,

            //                                                    txIqBandWidth,

            //                                                    totalRxBufferSize,

            //                                                   totalTxBufferSize,

            //                                                    allocateAuxPort,

            //                                                    allocateDebugPort);
        }