Esempio n. 1
0
        private void load()
        {
            schemelist     = SchemeListForm.CreateFrom();
            datagraph      = new DataZedGraphicForm();
            runtime        = new SchemeRunTimesForm();
            record         = new OperationRecordForm();
            attribute      = new Attribute();
            analysismethod = AnalysisMethodForm.CreateFrom();
            schemelist.Show(dockPanel1, DockState.DockLeft);
            datagraph.Show(dockPanel1, DockState.Document);


            //schemelist.Show(datagraph.Pane, DockAlignment.Left, 0.23);
            analysismethod.Show(datagraph.Pane, DockAlignment.Right, 0.3);
            runtime.Show(schemelist.Pane, DockAlignment.Bottom, 0.4);
            attribute.Show(analysismethod.Pane, DockAlignment.Bottom, 0.4);
            record.Show(datagraph.Pane, DockAlignment.Bottom, 0.3);
            //runtime.Show(dockPanel1, DockState.DockBottom);
            //runtime.Show(dockPanel1, DockState.DockLeft);
            //analysismethod.Show(dockPanel1, DockState.DockRight);



            //attribute.Show(dockPanel1, DockState.DockBottom);
            // attribute.Show(dockPanel1, DockState.DockRight);



            agent.datagraph = datagraph;
            agent.runtimes  = runtime;
            agent.attribute = attribute;
            agent.record    = record;
        }
Esempio n. 2
0
 //三.通过静态方法创建字窗体
 public static SchemeListForm CreateFrom()
 {
     //判断是否存在该窗体,或时候该字窗体是否被释放过,如果不存在该窗体,则 new 一个字窗体
     if (instance == null || instance.IsDisposed)
     {
         instance = new SchemeListForm();
     }
     return(instance);
 }
Esempio n. 3
0
 private void 方案列表ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     schemelist = SchemeListForm.CreateFrom();
     schemelist.Show();
 }