/// <summary> /// When the view wants to populate it's start page, it will invoke this /// event handler. /// </summary> /// <param name="sender">Sender object</param> /// <param name="e">Event arguments</param> private void OnPopulateStartPage(object sender, PopulateStartPageArgs e) { e.Descriptions.Add(new PopulateStartPageArgs.Description() { Name = "Open APSIM File", ResourceNameForImage = "ApsimNG.Resources.Toolboxes.OpenFile.png", OnClick = this.OnOpenApsimXFile }); e.Descriptions.Add(new PopulateStartPageArgs.Description() { Name = "Standard toolbox", ResourceNameForImage = "ApsimNG.Resources.Toolboxes.Toolbox.png", OnClick = this.OnStandardToolboxClick }); e.Descriptions.Add(new PopulateStartPageArgs.Description() { Name = "Management toolbox", ResourceNameForImage = "ApsimNG.Resources.Toolboxes.Toolbox.png", OnClick = this.OnManagementToolboxClick }); e.Descriptions.Add(new PopulateStartPageArgs.Description() { Name = "Training toolbox", ResourceNameForImage = "ApsimNG.Resources.Toolboxes.Toolbox.png", OnClick = this.OnTrainingToolboxClick }); e.Descriptions.Add(new PopulateStartPageArgs.Description() { Name = "Import old .apsim file", ResourceNameForImage = "ApsimNG.Resources.Toolboxes.Import.png", OnClick = this.OnImport }); e.Descriptions.Add(new PopulateStartPageArgs.Description() { Name = "Open an example", ResourceNameForImage = "ApsimNG.Resources.Toolboxes.OpenExample.png", OnClick = this.OnExample }); Utility.Configuration.Settings.CleanMruList(); // cleanup the list when this tab is first shown this.view.FillMruList(Utility.Configuration.Settings.MruList); }
/// <summary> /// When the view wants to populate it's start page, it will invoke this /// event handler. /// </summary> /// <param name="sender">Sender object</param> /// <param name="e">Event arguments</param> private void OnPopulateStartPage(object sender, PopulateStartPageArgs e) { e.Descriptions.Add(new PopulateStartPageArgs.Description() { Name = "Open APSIM File", ResourceNameForImage = "ApsimNG.Resources.Toolboxes.OpenFile.png", OnClick = this.OnOpenApsimXFile }); e.Descriptions.Add(new PopulateStartPageArgs.Description() { Name = "Standard toolbox", ResourceNameForImage = "ApsimNG.Resources.Toolboxes.Toolbox.png", OnClick = this.OnStandardToolboxClick }); e.Descriptions.Add(new PopulateStartPageArgs.Description() { Name = "Management toolbox", ResourceNameForImage = "ApsimNG.Resources.Toolboxes.Toolbox.png", OnClick = this.OnManagementToolboxClick }); e.Descriptions.Add(new PopulateStartPageArgs.Description() { Name = "Training toolbox", ResourceNameForImage = "ApsimNG.Resources.Toolboxes.Toolbox.png", OnClick = this.OnTrainingToolboxClick }); e.Descriptions.Add(new PopulateStartPageArgs.Description() { Name = "Import old .apsim file", ResourceNameForImage = "ApsimNG.Resources.Toolboxes.Import.png", OnClick = this.OnImport }); e.Descriptions.Add(new PopulateStartPageArgs.Description() { Name = "Open an example", ResourceNameForImage = "ApsimNG.Resources.Toolboxes.OpenExample.png", OnClick = this.OnExample }); Utility.Configuration.Settings.CleanMruList(); // cleanup the list when this tab is first shown this.view.FillMruList(Utility.Configuration.Settings.MruList); }