Пример #1
0
 private void OnOptionChanged(object sender, OptionEventArgs e)
 {
     // HACK: 5.6. OnOptionChanged. オプション(Custom)の変更イベント
     Values = e.NewValues;
     ReBuild();
     AttachIsLockedWheelZoom();
 }
Пример #2
0
        private void changeOption(string s)
        {
            this.Option = s;
            // Notifica il cambiamento di Option ad eventuali oggetti "in ascolto" (ad esempio toolBbox)
            OptionEventArgs e = new OptionEventArgs(this.Option);

            optionChanged(this, e);// raise event
        }
Пример #3
0
 /// <summary>
 /// When a shape's option gets changed, we get notified
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void OnOptionChanged(object sender, OptionEventArgs e)
 {
     if (e.option != EditOption.Select)
     {
         return;
     }
     deselectAll();
     SelectBtn.Checked = true;
 }
Пример #4
0
        private void DataCollector_OnOptionsDeskChanged(object sender, OptionEventArgs e)
        {
            if (!startUpSuccess)
            {
                return;
            }

            try
            {
                double tempStrike = e.opt.Strike;
                mainForm.UpdateViewData(
                    MakeDataList(tempStrike, tempStrike));
            }
            catch (Exception e4)
            {
                LOGGER.Error("An exception when event of options desk data changed was enabled:{0}", e4.ToString());
                throw;
            }
        }
Пример #5
0
        private void DataCollector_OnSpotPriceChanged(object sender, OptionEventArgs e)
        {
            if (!startUpSuccess)
            {
                return;
            }

            try
            {
                string[] data = new[]
                {
                    Convert.ToString(e.opt.Futures.GetTradeBlotter().AskPrice),
                    e.opt.Futures.Ticker,
                    Convert.ToString(e.opt.RemainingDays)
                };
                mainForm.UpdateFuturesData(data);
            }
            catch (Exception e5)
            {
                LOGGER.Error("An exception when event of options desk data changed was enabled:{0}", e5.ToString());
                throw;
            }
        }
Пример #6
0
 private void onOptionChanged(OptionEventArgs e)
 {
     if (optionChanged != null)
         optionChanged(this, e);
 }
 void OnMenuSelectionChanged(object sender, OptionEventArgs e)
 {
     UpdateBaseLayer(e.Section, e.Option.Value);
 }
Пример #8
0
 private void FakeOptionChange(object sender, OptionEventArgs e)
 {
 }