Exemplo n.º 1
0
        private void SettingsToUI()
        {
            AppOptSettings appSettings = AppOptSettings.Load();

            if (appSettings != null)
            {
                if (appSettings.ShutcutKeys != null)
                {
                    tb_Buy_Sell1.Text  = appSettings.ShutcutKeys.Buy_On_Sell1.ToString();
                    tb_Sell_Buy1.Text  = appSettings.ShutcutKeys.Sell_On_Buy1.ToString();
                    tb_Buy_Buy1.Text   = appSettings.ShutcutKeys.Buy_On_Buy1.ToString();
                    tb_Sell_Sell1.Text = appSettings.ShutcutKeys.Sell_On_Sell1.ToString();

                    tb_CancelOrder.Text      = appSettings.ShutcutKeys.CancelOrder.ToString();
                    tb_CloseAllPosition.Text = appSettings.ShutcutKeys.CloseAllPosition.ToString();

                    tb_NormalSpeedPlay.Text = appSettings.ShutcutKeys.NormalSpeedPlay.ToString();
                }
            }
        }
Exemplo n.º 2
0
 public void LoadAppSetting()
 {
     AppSetting = AppOptSettings.Load();
 }