Exemplo n.º 1
0
        private void biCustomize2_ItemClick(object sender, ItemClickEventArgs e)
        {
            ChartDesigner designer = new ChartDesigner(this.chartMarketDepth);

            if (designer.ShowDialog() == DialogResult.OK)
            {
                this.chartMarketDepth.SaveToFile(MarketDepthSettingsFileName);
            }
        }
Exemplo n.º 2
0
        private void biCustomize_ItemClick(object sender, ItemClickEventArgs e)
        {
            ChartDesigner designer = new ChartDesigner(this.chartControl1);

            if (designer.ShowDialog() == DialogResult.OK)
            {
                this.chartControl1.SaveToFile(ChartSettingsFileName);
            }
        }
        private void biCustomize_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            ChartDesigner designer = new ChartDesigner(this.chartControl);

            if (designer.ShowDialog() == DialogResult.OK)
            {
                CheckCreateSettingsFolder();
                DetachePoints();
                this.chartControl.SaveToFile(ChartSettingsFileName);
                AttachPoints();
            }
        }
        private void barButtonItem1_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            #region #DesignerCustomization
            ChartDesigner designer = new ChartDesigner(chartControl1);
            designer.AddElementMenuOptions.ShowAddSeriesMenuItem      = false;
            designer.AddElementMenuOptions.ShowAddSeriesTitleMenuItem = false;
            designer.Caption = "Chart Designer";
            designer.EnableLargeDataSetWarning = true;

            designer.ChartElementHighlighting += OnChartElementHighlighting;
            designer.ChartElementSelecting    += OnChartElementSelecting;
            designer.ChartStructureUpdating   += OnChartStructureUpdating;

            designer.ShowDialog();
            #endregion #DesignerCustomization
        }
Exemplo n.º 5
0
 public virtual void Design()
 {
     try
     {
         if (FocusedChart() != null)
         {
             ChartControl chartControl = FocusedChart();
             Sys_WorkSet  sys_WorkSet  = WorkSetList.Find(w => w.WorkSet_Grid == chartControl.Name);
             if (sys_WorkSet == null)
             {
                 return;
             }
             List <MyParameter> mps = new List <MyParameter>();
             mps = InitializeBind(sys_WorkSet.WorkSet_Id, true);
             DataTable dt = BaseService.Open(sys_WorkSet.WorkSet_Id, mps);
             chartControl.DataSource = dt;
             ChartDesigner chartDesigner = new ChartDesigner(chartControl);
             if (chartDesigner.ShowDialog().Equals(DialogResult.OK))
             {
                 MemoryStream memoryStream = new MemoryStream();
                 chartControl.SaveToStream(memoryStream);
                 Sys_Chart sys_Chart = new Sys_Chart();
                 sys_Chart.Chart_Name    = chartControl.Name;
                 sys_Chart.Chart_Nick    = chartControl.Name;
                 sys_Chart.Chart_Bytes   = memoryStream.ToArray();
                 sys_Chart.Chart_WorkSet = sys_WorkSet.WorkSet_Id;
                 sys_Chart.IsEnabled     = true;
                 sys_Chart.IsDelete      = false;
                 BaseService.Execute("SystemChart_Save", sys_Chart);
             }
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
        private void btnRunDesigner_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            ChartDesigner designer = new ChartDesigner(chartControl1);

            designer.ShowDialog();
        }
Exemplo n.º 7
0
        CustomClass cc = new CustomClass();//空构造函数,一边测试属性值改变

        private void button1_Click(object sender, EventArgs e)
        {
            ChartDesigner designer = new ChartDesigner(chartControl1);

            designer.ShowDialog();
        }