public Ensembles(ProcessData proc, ScatterGraph graph, Dates date, ClimateAnalysis p1p) { InitializeComponent(); parent = p1p; zedGraphControl1.MouseMoveEvent += new ZedGraphControl.ZedMouseEventHandler(graph.MouseMove1); zedGraphControl1.MouseDownEvent += new ZedGraphControl.ZedMouseEventHandler(MouseClick1); processor = proc; this.graph = graph; datesForm = date; customEnsembles = new List <ProcessData.Ensemble>(); modelList = new List <KeyValuePair <int, PointF> >(); //default scenario txtStdNumEnsembles.Text = "10"; //numPerEnsemble txtStdLow.Text = "10"; //low txtStdMiddle.Text = "50"; //middle txtStdHigh.Text = "90"; //high groupBox2.Enabled = false; groupBox3.Enabled = false; listBox2.Enabled = false; }
//Activates the plugin public override void Activate() { datesForm = new Dates(this); processor = new ProcessData(datesForm, (Map)App.Map); importFromFileForm = new ImportFromFile(processor, this); importFromDBForm = new ImportFromDB(processor, importFromFileForm); graph = new ScatterGraph(processor, datesForm); ensembleForm = new Ensembles(processor, graph, datesForm, this); outputForm = new Output(processor, graph); datesForm.setProcessData(processor); // Initialize the Ribbon controls in the "Climate" ribbon tab const string ClimateTabKey = "kClimate"; App.HeaderControl.Add(new RootItem(ClimateTabKey, "Climate Analysis") { SortOrder = 200 }); // Create and add Download button newButton = new SimpleActionItem("Download", downloadClick); newButton.RootKey = ClimateTabKey; newButton.ToolTipText = "Download climate data"; newButton.GroupCaption = "Input"; newButton.LargeImage = Resources.web; App.HeaderControl.Add(newButton); // Create and add Import button newButton = new SimpleActionItem("Import From File", importFromFileClick); newButton.RootKey = ClimateTabKey; newButton.ToolTipText = "Import climate data from file"; newButton.GroupCaption = "Input"; newButton.LargeImage = Resources.fileIcon; App.HeaderControl.Add(newButton); // Create and add Import button newButton = new SimpleActionItem("Import From Database", importFromDBClick); newButton.RootKey = ClimateTabKey; newButton.ToolTipText = "Import climate data from the database"; newButton.GroupCaption = "Input"; newButton.LargeImage = Resources.Database; App.HeaderControl.Add(newButton); // Create and add delete button newButton = new SimpleActionItem("Clear Imported Data", clearImportedDataClick); newButton.RootKey = ClimateTabKey; newButton.ToolTipText = "Clear all data the has been imported"; newButton.GroupCaption = "Input"; newButton.LargeImage = Resources.Actions_window_close_icon; App.HeaderControl.Add(newButton); // Create and add Date Range button SimpleActionItem dateButton = new SimpleActionItem("Select Dates", dateClick); dateButton.RootKey = ClimateTabKey; dateButton.ToolTipText = "Select date ranges"; dateButton.GroupCaption = "Analysis"; dateButton.LargeImage = Resources.calendar; App.HeaderControl.Add(dateButton); // Create and add Statistical button SimpleActionItem statButton = new SimpleActionItem("Select Scenario", statClick); statButton.RootKey = ClimateTabKey; statButton.ToolTipText = "Select ensembles"; statButton.GroupCaption = "Analysis"; statButton.LargeImage = Resources.bar; App.HeaderControl.Add(statButton); // Create and add Output button SimpleActionItem outputButton = new SimpleActionItem("Save Results", outputClick); outputButton.RootKey = ClimateTabKey; outputButton.ToolTipText = "Outputs Data Files"; outputButton.GroupCaption = "Output"; outputButton.LargeImage = Resources.download; App.HeaderControl.Add(outputButton); // Create and add Cluster Graph button SimpleActionItem clusterButton = new SimpleActionItem("Cluster Graph", clusterClick); clusterButton.RootKey = ClimateTabKey; clusterButton.ToolTipText = "Shows cluster graph"; clusterButton.GroupCaption = "Output"; clusterButton.LargeImage = Resources.chart; App.HeaderControl.Add(clusterButton); // Create and add Adjust Forcing File button SimpleActionItem forcingButton = new SimpleActionItem("Adjust Forcing File", forcingClick); forcingButton.RootKey = ClimateTabKey; forcingButton.ToolTipText = "Adjusts forcing file"; forcingButton.GroupCaption = "Output"; forcingButton.LargeImage = Resources.adjust; App.HeaderControl.Add(forcingButton); // Create and add About button SimpleActionItem AboutButton = new SimpleActionItem("About", AboutClick); AboutButton.RootKey = ClimateTabKey; AboutButton.ToolTipText = "About Toolkit"; AboutButton.GroupCaption = "Help"; AboutButton.LargeImage = Resources.readme1; App.HeaderControl.Add(AboutButton); // Create and add Help button SimpleActionItem howToButton = new SimpleActionItem("Help", howToClick); howToButton.RootKey = ClimateTabKey; howToButton.ToolTipText = "Read Me"; howToButton.GroupCaption = "Help"; howToButton.LargeImage = Resources.help; App.HeaderControl.Add(howToButton); base.Activate(); }
public Output(ProcessData proc, ScatterGraph graph) { InitializeComponent(); processor = proc; this.graph = graph; }