public BlenXProjectNode(BlenXProjectPackage package) { this.package = package; imageIndex = this.ImageHandler.ImageList.Images.Count; foreach (Image img in imageList.Images) { this.ImageHandler.AddImage(img); } }
/// <summary> /// Standard constructor for the tool window. /// </summary> public BetaSimToolWindow(BlenXProjectPackage package) : base(package) { // Set the window title reading it from the resources. this.Caption = Resources.ToolWindowTitle; // Set the image that will appear on the tab of the window frame // when docked with an other window // The resource ID correspond to the one defined in the resx file // while the Index is the offset in the bitmap strip. Each image in // the strip being 16x16. this.BitmapResourceID = 301; this.BitmapIndex = 1; control = new BetaSimControl(package); }
public SimResultsNode(BlenXProjectNode root, ProjectElement element) : base(root, element) { simResultsFileName = root.ProjectFolder + Path.DirectorySeparatorChar + "Results.sim"; package = root.BlenXPackage; bool simFilePresent = false; if (File.Exists(simResultsFileName)) { try { simResults = BetaSimResults.LoadFromFile(simResultsFileName); if (simResults != null) simFilePresent = true; } catch { simFilePresent = false; } } if (!simFilePresent) { // create a new, empty one simResults = new BetaSimResults(); BetaSimResults.SaveToFile(simResultsFileName, simResults); } Debug.Assert(simResults != null); // Refresh window var window = package.FindToolWindow(typeof(BetaSimToolWindow), 0, true) as BetaSimToolWindow; if (window != null) { // Add window.Update(simResults.ResultList); } }
public BlenXProjectFactory(BlenXProjectPackage package) : base(package) { this.package = package; }
public BetaSimControl(BlenXProjectPackage package) { this.package = package; InitializeComponent(); }