コード例 #1
0
ファイル: TableDefDataView.cs プロジェクト: janproch/datadmin
 public void SaveChanges(BedTable table, ISaveDataProgress progress)
 {
     m_table.SaveFixedData(table.ToInMemoryTable());
 }
コード例 #2
0
ファイル: TableDefDataView.cs プロジェクト: janproch/datadmin
 public void SaveChanges(BedTable table, ISqlDumper dmp)
 {
     throw new NotImplementedError("DAE-00143");
 }
コード例 #3
0
ファイル: ChartFrame.cs プロジェクト: janproch/datadmin
        private void ShowCurrentData()
        {
            if (m_structure == null)
            {
                return;
            }

            var parent = zedGraphControl1.Parent;

            parent.Controls.Remove(zedGraphControl1);
            zedGraphControl1.Dispose();
            zedGraphControl1      = new ZedGraphControl();
            zedGraphControl1.Dock = DockStyle.Fill;
            zedGraphControl1.IsShowPointValues = true;
            parent.Controls.Add(zedGraphControl1);

            GraphPane myPane = zedGraphControl1.GraphPane;

            myPane.Title.Text = Texts.Get("s_chart");
            //myPane.CurveList.Clear();
            if (m_curdata != null && Style != null)
            {
                Style.FillData(myPane, m_curdata);
            }

            zedGraphControl1.Invalidate();
            zedGraphControl1.AxisChange();

            if (m_curdata != null)
            {
                var mem = ChartDataToTable(m_curdata);
                var tbl = new BedTable(mem);
                tableDataFrame1.TabularData = new InMemoryTabularData(tbl);
            }
            else
            {
                tableDataFrame1.TabularData = null;
            }

            if (cbxDataSourceType.Items.Count == 0)
            {
                CreateConfigurator(new HistogramDataSourceConfigurator(m_structure));
                CreateConfigurator(new ValuesDataSourceConfigurator(m_structure));
                CreateConfigurator(new TimeLineDataSourceConfigurator(m_structure));
                if (m_loadProcessor != null)
                {
                    for (int i = 0; i < cbxDataSourceType.Items.Count; i++)
                    {
                        var cfg = (DataSourceConfigurator)cbxDataSourceType.Items[i];
                        if (cfg.GetProcessorType() == m_loadProcessor.GetType())
                        {
                            cfg.LoadFromProcessor(m_loadProcessor);
                            cbxDataSourceType.SelectedIndex = i;
                            m_loadProcessor = null;
                            break;
                        }
                    }
                }
                else
                {
                    cbxDataSourceType.SelectedIndex = 0;
                }
                RefreshChartData();
            }
        }