Beispiel #1
0
        }     //end method GetSelectedService

        // Send values to Update Editor
        private void SendData()
        {
            if (ParentUI.IsLoaded())
            {
                ParentUI.LoadUpdatePanel();
            }
        }//end method
Beispiel #2
0
    private void Awake()
    {
        if (Instance == null)
        {
            Instance = this;
        }
        else if (Instance != this)
        {
            Destroy(gameObject);
        }

        InventoryUI = GetComponent <InventoryUI>();
        CraftingUI  = GetComponent <CraftingUI>();
    }
        public void strategyHandler(Object arg)
        {
            StrategyArg       stgArg = (StrategyArg)arg;
            IStrategy         stg    = stgArg.strategy;
            CancellationToken ct     = stgArg.ct;
            int number = stgArg.number;

            while (true)
            {
                stg.calculate_signals(null, null);
                if (ct.IsCancellationRequested)
                {
                    break;
                }
            }
            StrategyOnOff onOff = new StrategyOnOff();

            onOff.stgIndex = stgArg.number;
            onOff.isOn     = false;
            ParentUI.HandleStrategyOnOff(onOff);
        }
        }//end method buttonUpdate_Click

        private void buttonDelete_Click(object sender, EventArgs e)
        {
            ParentUI.DeleteService();
        }//end method buttonDelete_Click
Beispiel #5
0
        }//end method buttonReset_Click

        private void buttonAdd_Click(object sender, EventArgs e)
        {
            ParentUI.InsertService();
            Reset();
        }//end method buttonAdd_Click
 public List <String[]> getPositionSummary()
 {
     return(ParentUI.getPositionSummary());
 }
 //new dailyReset
 public void dailyReset()
 {
     appMDManager.dailyReset();
     appOrderManager.dailyReset();
     ParentUI.dailyReset();
 }