public SeriesToolButtonAttribute(CandleChartControl.ChartTool tool, string title, ToolButtonImageIndex imageIndex, bool defaultTool)
 {
     Title            = title;
     Tool             = tool;
     ImageIndex       = imageIndex;
     this.defaultTool = defaultTool;
 }
 public bool OnMouseMove(MouseEventArgs e, Keys modifierKeys,
                         CandleChartControl.ChartTool activeChartTool)
 {
     if (activeChartTool != linkedChartTool)
     {
         return(false);
     }
     return(OnMouseMove(e, modifierKeys));
 }
 public bool OnMouseUp(List <SeriesEditParameter> parameters,
                       MouseEventArgs e,
                       CandleChartControl.ChartTool activeChartTool,
                       Keys modifierKeys,
                       out IChartInteractiveObject objectToEdit)
 {
     if (activeChartTool != linkedChartTool)
     {
         objectToEdit = null;
         return(false);
     }
     return(OnMouseUp(parameters, e, modifierKeys, out objectToEdit));
 }
 public bool OnMouseDown(MouseEventArgs e,
                         List <SeriesEditParameter> parameters,
                         CandleChartControl.ChartTool activeChartTool,
                         Keys modifierKeys,
                         out IChartInteractiveObject objectToEdit)
 {
     if (activeChartTool == linkedChartTool)
     {
         OnMouseDown(parameters, e, modifierKeys, out objectToEdit);
         return(true);
     }
     objectToEdit = null;
     return(false);
 }
 public LocalizedSeriesToolButtonAttribute(CandleChartControl.ChartTool tool, string title,
                                           ToolButtonImageIndex imageIndex, bool defaultTool)
     : base(tool, Localizer.GetString(title), imageIndex, defaultTool)
 {
 }
 public SeriesToolButtonAttribute(CandleChartControl.ChartTool tool, string title, ToolButtonImageIndex imageIndex)
 {
     Title      = title;
     Tool       = tool;
     ImageIndex = imageIndex;
 }
 protected InteractiveObjectSeries(string name, 
     CandleChartControl.ChartTool linkedTool)
     : base(name)
 {
     linkedChartTool = linkedTool;
 }
 protected InteractiveObjectSeries(string name,
                                   CandleChartControl.ChartTool linkedTool) : base(name)
 {
     linkedChartTool = linkedTool;
 }