- Material Compatibility Map 추가
This commit is contained in:
52
MainForm.Designer.cs
generated
52
MainForm.Designer.cs
generated
@@ -54,9 +54,11 @@
|
||||
this.trendGraphToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.reportToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.allToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.dockPanel = new WeifenLuo.WinFormsUI.Docking.DockPanel();
|
||||
this.aToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.aboutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.dockPanel = new WeifenLuo.WinFormsUI.Docking.DockPanel();
|
||||
this.materialCompatibilityMapToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStripButtonMap = new System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripMain.SuspendLayout();
|
||||
this.statusStrip.SuspendLayout();
|
||||
this.menuStrip.SuspendLayout();
|
||||
@@ -72,6 +74,7 @@
|
||||
this.toolStripSeparator3,
|
||||
this.toolStripButtonResult,
|
||||
this.toolStripButtonAnalysis,
|
||||
this.toolStripButtonMap,
|
||||
this.toolStripSeparator2,
|
||||
this.toolStripButtonRadarGraph,
|
||||
this.toolStripButtonTrendGraph});
|
||||
@@ -228,7 +231,8 @@
|
||||
//
|
||||
this.tableToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.resultTableToolStripMenuItem,
|
||||
this.analysisTableToolStripMenuItem});
|
||||
this.analysisTableToolStripMenuItem,
|
||||
this.materialCompatibilityMapToolStripMenuItem});
|
||||
this.tableToolStripMenuItem.Name = "tableToolStripMenuItem";
|
||||
this.tableToolStripMenuItem.Size = new System.Drawing.Size(47, 20);
|
||||
this.tableToolStripMenuItem.Text = "Table";
|
||||
@@ -236,14 +240,14 @@
|
||||
// resultTableToolStripMenuItem
|
||||
//
|
||||
this.resultTableToolStripMenuItem.Name = "resultTableToolStripMenuItem";
|
||||
this.resultTableToolStripMenuItem.Size = new System.Drawing.Size(149, 22);
|
||||
this.resultTableToolStripMenuItem.Size = new System.Drawing.Size(221, 22);
|
||||
this.resultTableToolStripMenuItem.Text = "Result Table";
|
||||
this.resultTableToolStripMenuItem.Click += new System.EventHandler(this.resultTableToolStripMenuItem_Click);
|
||||
//
|
||||
// analysisTableToolStripMenuItem
|
||||
//
|
||||
this.analysisTableToolStripMenuItem.Name = "analysisTableToolStripMenuItem";
|
||||
this.analysisTableToolStripMenuItem.Size = new System.Drawing.Size(149, 22);
|
||||
this.analysisTableToolStripMenuItem.Size = new System.Drawing.Size(221, 22);
|
||||
this.analysisTableToolStripMenuItem.Text = "Analysis Table";
|
||||
this.analysisTableToolStripMenuItem.Click += new System.EventHandler(this.analysisTableToolStripMenuItem_Click);
|
||||
//
|
||||
@@ -285,15 +289,6 @@
|
||||
this.allToolStripMenuItem.Size = new System.Drawing.Size(88, 22);
|
||||
this.allToolStripMenuItem.Text = "All";
|
||||
//
|
||||
// dockPanel
|
||||
//
|
||||
this.dockPanel.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.dockPanel.DocumentStyle = WeifenLuo.WinFormsUI.Docking.DocumentStyle.DockingWindow;
|
||||
this.dockPanel.Location = new System.Drawing.Point(0, 49);
|
||||
this.dockPanel.Name = "dockPanel";
|
||||
this.dockPanel.Size = new System.Drawing.Size(1184, 690);
|
||||
this.dockPanel.TabIndex = 2;
|
||||
//
|
||||
// aToolStripMenuItem
|
||||
//
|
||||
this.aToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
@@ -305,10 +300,37 @@
|
||||
// aboutToolStripMenuItem
|
||||
//
|
||||
this.aboutToolStripMenuItem.Name = "aboutToolStripMenuItem";
|
||||
this.aboutToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
|
||||
this.aboutToolStripMenuItem.Size = new System.Drawing.Size(107, 22);
|
||||
this.aboutToolStripMenuItem.Text = "About";
|
||||
this.aboutToolStripMenuItem.Click += new System.EventHandler(this.aboutToolStripMenuItem_Click);
|
||||
//
|
||||
// dockPanel
|
||||
//
|
||||
this.dockPanel.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.dockPanel.DocumentStyle = WeifenLuo.WinFormsUI.Docking.DocumentStyle.DockingWindow;
|
||||
this.dockPanel.Location = new System.Drawing.Point(0, 49);
|
||||
this.dockPanel.Name = "dockPanel";
|
||||
this.dockPanel.Size = new System.Drawing.Size(1184, 690);
|
||||
this.dockPanel.TabIndex = 2;
|
||||
//
|
||||
// materialCompatibilityMapToolStripMenuItem
|
||||
//
|
||||
this.materialCompatibilityMapToolStripMenuItem.Name = "materialCompatibilityMapToolStripMenuItem";
|
||||
this.materialCompatibilityMapToolStripMenuItem.Size = new System.Drawing.Size(221, 22);
|
||||
this.materialCompatibilityMapToolStripMenuItem.Text = "Material Compatibility Map";
|
||||
this.materialCompatibilityMapToolStripMenuItem.Click += new System.EventHandler(this.materialCompatibilityMapToolStripMenuItem_Click);
|
||||
//
|
||||
// toolStripButtonMap
|
||||
//
|
||||
this.toolStripButtonMap.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.toolStripButtonMap.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButtonMap.Image")));
|
||||
this.toolStripButtonMap.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.toolStripButtonMap.Name = "toolStripButtonMap";
|
||||
this.toolStripButtonMap.Size = new System.Drawing.Size(23, 22);
|
||||
this.toolStripButtonMap.Text = "toolStripButton1";
|
||||
this.toolStripButtonMap.ToolTipText = "Material Compatibility Map";
|
||||
this.toolStripButtonMap.Click += new System.EventHandler(this.toolStripButtonMap_Click);
|
||||
//
|
||||
// MainForm
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
|
||||
@@ -364,6 +386,8 @@
|
||||
private System.Windows.Forms.ToolStripSeparator toolStripSeparator3;
|
||||
private System.Windows.Forms.ToolStripMenuItem aToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem aboutToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripButton toolStripButtonMap;
|
||||
private System.Windows.Forms.ToolStripMenuItem materialCompatibilityMapToolStripMenuItem;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
14
MainForm.cs
14
MainForm.cs
@@ -19,6 +19,7 @@ namespace friction
|
||||
PanelMaterial m_MaterialPanel = null;
|
||||
PanelResult m_ResultPanel = null;
|
||||
PanelAnalysis m_AnalysisPanel = null;
|
||||
PanelCompatibility m_CompatibilityPanel = null;
|
||||
PanelRadarGraph m_RadarGraphPanel = null;
|
||||
PanelTrendGraph m_TrendGraphPanel = null;
|
||||
|
||||
@@ -30,6 +31,7 @@ namespace friction
|
||||
m_MaterialPanel = new PanelMaterial(this);
|
||||
m_ResultPanel = new PanelResult(this);
|
||||
m_AnalysisPanel = new PanelAnalysis(this);
|
||||
m_CompatibilityPanel = new PanelCompatibility(this);
|
||||
m_RadarGraphPanel = new PanelRadarGraph(this, m_DataHandler);
|
||||
m_TrendGraphPanel = new PanelTrendGraph(this, m_DataHandler);
|
||||
|
||||
@@ -137,6 +139,12 @@ namespace friction
|
||||
OpenPanel(m_AnalysisPanel);
|
||||
}
|
||||
|
||||
private void materialCompatibilityMapToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
OpenPanel(m_CompatibilityPanel);
|
||||
m_CompatibilityPanel.UpdateData(m_DataHandler);
|
||||
}
|
||||
|
||||
private void radarGraphToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
OpenPanel(m_RadarGraphPanel);
|
||||
@@ -179,6 +187,12 @@ namespace friction
|
||||
OpenPanel(m_AnalysisPanel);
|
||||
}
|
||||
|
||||
private void toolStripButtonMap_Click(object sender, EventArgs e)
|
||||
{
|
||||
OpenPanel(m_CompatibilityPanel);
|
||||
m_CompatibilityPanel.UpdateData(m_DataHandler);
|
||||
}
|
||||
|
||||
private void toolStripButtonRadarGraph_Click(object sender, EventArgs e)
|
||||
{
|
||||
OpenPanel(m_RadarGraphPanel);
|
||||
|
||||
@@ -166,24 +166,24 @@
|
||||
<data name="toolStripButtonRadarGraph.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
|
||||
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAFdSURBVDhPYxh8wGfmJi6fSbtLfSfuPu8+cffPyP27/hcd
|
||||
OPQ1a/uRTZlbDgtClWEHXlP2yvv2774O1PwfhlOOHvhfdeE0GBcfO/EjZeN+C6hyVACyGV0zCOedOgo3
|
||||
AGZI6O4z/FBtCOA7YU8Zumbvvp1X848d/45sAAhn7Dy2AaoNAYC2X0AxYNLOBKgUQ/qOw7ORDSjaf+gr
|
||||
VAoBQAGGbDNUGA5ATocZUHnu1H+oMAIgG+A1cdcVqDAE/P/PuPrBmx+7X33+v/XFp/+rn77HNMC7f8c5
|
||||
mAEg7DNhVyJUiqF80/m2w2+//ofhtXdefYFKIYDPxN1FyAZA8TUwnrD7f/nmi3ADpp1+sBaqDQFCeo9x
|
||||
gpyOZgAce0/Y9T99+cn/62+8/l5/4hYfVBsq8JmwWw6fIW69O24mzdlvAlWOHdjP388B8c6us779W7+D
|
||||
8cTdZ4D8ApAcVNmgAQwMAMJCPmrrgfeiAAAAAElFTkSuQmCC
|
||||
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAFbSURBVDhPYxh8wGfmJi6fSbtLfSfuPu82cffPyP27/hft
|
||||
P/g1a/uRTZlbDgtClWEHXlP2yvv2774O1PwfhlOOHvhfdeE0GBcfO/EjZeN+C6hyVACyGV0zCOedOgo3
|
||||
AGZI6O4z/FBtCOA7YU8Zumbvvp1X848d/45sAAhn7Dy2AaoNAYC2X0AxYNLOBKgUQ/qOw7ORDQCFCVQK
|
||||
AUABhmwzVBgOQE6HGVB57tR/qDACIBvgNXHXFagwBPz/z7jqwZsfu199/r/1xaf/q5++xzTAu3/HOZgB
|
||||
IOwzYVciVIqhfNP5tsNvv/6H4bV3Xn2BSiGAz8TdRcgGQPE1MJ6w+3/55otwA6adfrAWqg0BQnqPcYKc
|
||||
jmYAHHtP2PU/ffnJ/+uvv/5ef+IWH1QbKvCZsFsOnyFuvTtuJs3ZbwJVjh3Yz9/PAfHOrrO+/Vu+g/HE
|
||||
3WeA/AKQHFTZoAEMDACtOj5gNuDefQAAAABJRU5ErkJggg==
|
||||
</value>
|
||||
</data>
|
||||
<data name="toolStripButtonTrendGraph.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
|
||||
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAEpSURBVDhPY6A7COk9xuk1Za88lIsdBE7bKeY7aac1lIsC
|
||||
/CbtXunbvfWfV/8uTagQJvCdtHuT78Td//2n7DSACoHB8RefxTsP3rruM2Hnbv/+/QJQYUww6eitw3Hz
|
||||
D23d8+LDgcNvPrvaz9/PceDtZ91Dr7+sKD17Vqrq/MlAqFJMcOjNl7pNj14EVJ47ZQ/iL732vNund9uv
|
||||
/CbtXunbteWfV/8uTagQJvCdtHuT78Td//2n7DSACoHB8RefxTsP3rruM2Hnbv/+/QJQYUww6eitw3Hz
|
||||
D23d8+LDgcNvPrvaz9/PceDtZ91Dr7+sKD17Vqrq/MlAqFJMcOjNl7pNj14EVJ47ZQ/iL732vNunZ+uv
|
||||
vDUnL4H45edO6FedPz0BxMYAB998DT785msOsiK/ybukAibte+IzcVc1iI/VALfeHULBk/ccb9595QCI
|
||||
j66o8vyZgKrzx6RBbKwGgELUfeLuv74Tdi0B8TEMuHC6H+hvcIBiNQAE0nccds3YeVQMxCbLAHyKRooB
|
||||
oBRWeOwYJ4hdf38/ByzaQACfHIWAgQEAG7v9X5RifekAAAAASUVORK5CYII=
|
||||
j66o8vyZgKrzx6RBbKwGgELUbeLuv74Tdi0B8TEMuHC6H+hvcIBiNQAE0nccds3YeVQMxCbLAHyKRooB
|
||||
oBRWeOwYJ4hdf38/ByzaQACfHIWAgQEADcT9Wpq2F4AAAAAASUVORK5CYII=
|
||||
</value>
|
||||
</data>
|
||||
<metadata name="statusStrip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
@@ -192,6 +192,17 @@
|
||||
<metadata name="menuStrip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>254, 17</value>
|
||||
</metadata>
|
||||
<data name="toolStripButtonMap.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
|
||||
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAELSURBVDhPYxhcwH/7dgXv3ZsdoFwMAJIDqYFyMYHvzs0N
|
||||
vru2/IdyMQBIDqQGykUFKYuPvU9cfPhrwsKjv0FsbDhh8eFfyQsPfwOxodoQwHfi7v+kYKg2BGjff+N/
|
||||
274b/1uBuBmIm/Ze/98IxPVAXLfn+v+aPdf+V+++9r8SiqHaEODw26//97z6+H/rs7f/QWwQDeJjEzvw
|
||||
9gt2AxovXv4PCqgtLz+D6aKzF7GKgdRCtSEASHD5wxf/W67cAtry5X/n1dv/Z917hlUMpwEzb9//n3vq
|
||||
FFhxwenT//tv3MMqhtOA9qvX/4fs2w12bhiQLrtwFasYTgNIwVBtCHD49WcHUjBU24ADBgYAaEuMMZze
|
||||
rScAAAAASUVORK5CYII=
|
||||
</value>
|
||||
</data>
|
||||
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
AAABAAYAEBAAAAAAIABoBAAAZgAAACAgAAAAACAAqBAAAM4EAAAwMAAAAAAgAKglAAB2FQAAQEAAAAAA
|
||||
|
||||
66
PanelCompatibility.Designer.cs
generated
Normal file
66
PanelCompatibility.Designer.cs
generated
Normal file
@@ -0,0 +1,66 @@
|
||||
namespace friction
|
||||
{
|
||||
partial class PanelCompatibility
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.dgvMap = new System.Windows.Forms.DataGridView();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dgvMap)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// dgvMap
|
||||
//
|
||||
this.dgvMap.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.dgvMap.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.dgvMap.Location = new System.Drawing.Point(12, 12);
|
||||
this.dgvMap.Name = "dgvMap";
|
||||
this.dgvMap.RowTemplate.Height = 23;
|
||||
this.dgvMap.Size = new System.Drawing.Size(799, 647);
|
||||
this.dgvMap.TabIndex = 0;
|
||||
//
|
||||
// PanelCompatibility
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(823, 671);
|
||||
this.ControlBox = false;
|
||||
this.Controls.Add(this.dgvMap);
|
||||
this.HideOnClose = true;
|
||||
this.Name = "PanelCompatibility";
|
||||
this.Text = "Material Compatibility Map";
|
||||
((System.ComponentModel.ISupportInitialize)(this.dgvMap)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.DataGridView dgvMap;
|
||||
}
|
||||
}
|
||||
103
PanelCompatibility.cs
Normal file
103
PanelCompatibility.cs
Normal file
@@ -0,0 +1,103 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using WeifenLuo.WinFormsUI.Docking;
|
||||
|
||||
namespace friction
|
||||
{
|
||||
public partial class PanelCompatibility : DockContent
|
||||
{
|
||||
MainForm m_Owner = null;
|
||||
|
||||
public PanelCompatibility(MainForm owner)
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
m_Owner = owner;
|
||||
|
||||
Theme.Apply(this);
|
||||
Theme.Apply(dgvMap);
|
||||
|
||||
dgvMap.CellPainting += DgvMap_CellPainting;
|
||||
dgvMap.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing;
|
||||
dgvMap.ColumnHeadersHeight = 100;
|
||||
dgvMap.RowHeadersWidthSizeMode = DataGridViewRowHeadersWidthSizeMode.AutoSizeToAllHeaders;
|
||||
dgvMap.DefaultCellStyle.Format = "N2";
|
||||
}
|
||||
|
||||
public void UpdateData(DataHandler data)
|
||||
{
|
||||
var Springs = data.GetSpringList();
|
||||
var Tables = data.GetTableList();
|
||||
|
||||
dgvMap.Rows.Clear();
|
||||
dgvMap.Columns.Clear();
|
||||
|
||||
|
||||
foreach (var table in Tables)
|
||||
{
|
||||
int iCol = dgvMap.Columns.Add(table, table);
|
||||
dgvMap.Columns[iCol].Width = 29;
|
||||
}
|
||||
|
||||
foreach (var spring in Springs)
|
||||
{
|
||||
int iRow = dgvMap.Rows.Add();
|
||||
dgvMap.Rows[iRow].HeaderCell.Value = spring;
|
||||
|
||||
var Averages = data.GetAvgAll(spring);
|
||||
foreach(var avg in Averages)
|
||||
{
|
||||
if(avg.m_fAvg > 0)
|
||||
{
|
||||
var cell = dgvMap.Rows[iRow].Cells[avg.m_strTable];
|
||||
cell.Value = avg.m_fAvg;
|
||||
Config.ANALYSIS.RISK Risk = Config.ANALYSIS.GetRisk(avg.m_fAvg);
|
||||
switch(Risk)
|
||||
{
|
||||
case Config.ANALYSIS.RISK.NO:
|
||||
cell.Style.BackColor = Theme.Green;
|
||||
break;
|
||||
case Config.ANALYSIS.RISK.POTENTIAL:
|
||||
cell.Style.BackColor = Theme.Yellow;
|
||||
break;
|
||||
case Config.ANALYSIS.RISK.HIGH:
|
||||
cell.Style.BackColor = Theme.Red;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void DgvMap_CellPainting(object sender, DataGridViewCellPaintingEventArgs e)
|
||||
{
|
||||
DataGridView view = sender as DataGridView;
|
||||
|
||||
|
||||
if (e.RowIndex == -1 && e.ColumnIndex >= 0)
|
||||
{
|
||||
Brush brush = new SolidBrush(this.dgvMap.ForeColor);
|
||||
|
||||
e.PaintBackground(e.ClipBounds, true);
|
||||
Rectangle rect = view.GetColumnDisplayRectangle(e.ColumnIndex, true);
|
||||
Size titleSize = TextRenderer.MeasureText(e.Value.ToString(), e.CellStyle.Font);
|
||||
if (view.ColumnHeadersHeight < titleSize.Width)
|
||||
view.ColumnHeadersHeight = titleSize.Width;
|
||||
e.Graphics.TranslateTransform(0, titleSize.Width);
|
||||
e.Graphics.RotateTransform(-90.0F);
|
||||
e.Graphics.DrawString(e.Value.ToString(), this.Font, brush,
|
||||
new PointF(rect.Y - (view.ColumnHeadersHeight - titleSize.Width), rect.X+(e.CellBounds.Width-titleSize.Height)/2));
|
||||
e.Graphics.RotateTransform(90.0F);
|
||||
e.Graphics.TranslateTransform(0, -titleSize.Width);
|
||||
e.Handled = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
120
PanelCompatibility.resx
Normal file
120
PanelCompatibility.resx
Normal file
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
@@ -85,6 +85,12 @@
|
||||
<Compile Include="PanelAnalysis.Designer.cs">
|
||||
<DependentUpon>PanelAnalysis.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="PanelCompatibility.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="PanelCompatibility.Designer.cs">
|
||||
<DependentUpon>PanelCompatibility.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="PanelRadarGraph.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
@@ -119,6 +125,9 @@
|
||||
<EmbeddedResource Include="PanelAnalysis.resx">
|
||||
<DependentUpon>PanelAnalysis.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="PanelCompatibility.resx">
|
||||
<DependentUpon>PanelCompatibility.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="PanelRadarGraph.resx">
|
||||
<DependentUpon>PanelRadarGraph.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
|
||||
BIN
resource/map3.ico
Normal file
BIN
resource/map3.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 361 KiB |
Reference in New Issue
Block a user