commit
f667cfbc9e
6 changed files with 666 additions and 60 deletions
444
ShiftOS.WinForms/Applications/TriSheet.Designer.cs
generated
444
ShiftOS.WinForms/Applications/TriSheet.Designer.cs
generated
|
@ -28,38 +28,452 @@
|
|||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.toolStripContainer1 = new System.Windows.Forms.ToolStripContainer();
|
||||
this.toolStripContainer1.SuspendLayout();
|
||||
this.BottomToolStripPanel = new System.Windows.Forms.ToolStripPanel();
|
||||
this.TopToolStripPanel = new System.Windows.Forms.ToolStripPanel();
|
||||
this.RightToolStripPanel = new System.Windows.Forms.ToolStripPanel();
|
||||
this.LeftToolStripPanel = new System.Windows.Forms.ToolStripPanel();
|
||||
this.ContentPanel = new System.Windows.Forms.ToolStripContentPanel();
|
||||
this.menuStrip1 = new System.Windows.Forms.MenuStrip();
|
||||
this.newToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.openToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.saveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStrip1 = new System.Windows.Forms.ToolStrip();
|
||||
this.bold = new System.Windows.Forms.ToolStripButton();
|
||||
this.italic = new System.Windows.Forms.ToolStripButton();
|
||||
this.underline = new System.Windows.Forms.ToolStripButton();
|
||||
this.strikethrough = new System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.left = new System.Windows.Forms.ToolStripButton();
|
||||
this.center = new System.Windows.Forms.ToolStripButton();
|
||||
this.right = new System.Windows.Forms.ToolStripButton();
|
||||
this.dataGridView1 = new System.Windows.Forms.DataGridView();
|
||||
this.A = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.B = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.C = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.D = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.E = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.F = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.G = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.H = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.I = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.J = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.K = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.L = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.M = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.N = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.O = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.P = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.Q = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.R = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.S = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.T = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.U = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.V = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.W = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.Y = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.X = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.Z = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.menuStrip1.SuspendLayout();
|
||||
this.toolStrip1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// toolStripContainer1
|
||||
// BottomToolStripPanel
|
||||
//
|
||||
this.BottomToolStripPanel.Location = new System.Drawing.Point(0, 0);
|
||||
this.BottomToolStripPanel.Name = "BottomToolStripPanel";
|
||||
this.BottomToolStripPanel.Orientation = System.Windows.Forms.Orientation.Horizontal;
|
||||
this.BottomToolStripPanel.RowMargin = new System.Windows.Forms.Padding(3, 0, 0, 0);
|
||||
this.BottomToolStripPanel.Size = new System.Drawing.Size(0, 0);
|
||||
//
|
||||
// toolStripContainer1.ContentPanel
|
||||
// TopToolStripPanel
|
||||
//
|
||||
this.toolStripContainer1.ContentPanel.Size = new System.Drawing.Size(710, 464);
|
||||
this.toolStripContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.toolStripContainer1.Location = new System.Drawing.Point(0, 0);
|
||||
this.toolStripContainer1.Name = "toolStripContainer1";
|
||||
this.toolStripContainer1.Size = new System.Drawing.Size(710, 489);
|
||||
this.toolStripContainer1.TabIndex = 0;
|
||||
this.toolStripContainer1.Text = "toolStripContainer1";
|
||||
this.TopToolStripPanel.Location = new System.Drawing.Point(0, 0);
|
||||
this.TopToolStripPanel.Name = "TopToolStripPanel";
|
||||
this.TopToolStripPanel.Orientation = System.Windows.Forms.Orientation.Horizontal;
|
||||
this.TopToolStripPanel.RowMargin = new System.Windows.Forms.Padding(3, 0, 0, 0);
|
||||
this.TopToolStripPanel.Size = new System.Drawing.Size(0, 0);
|
||||
//
|
||||
// RightToolStripPanel
|
||||
//
|
||||
this.RightToolStripPanel.Location = new System.Drawing.Point(0, 0);
|
||||
this.RightToolStripPanel.Name = "RightToolStripPanel";
|
||||
this.RightToolStripPanel.Orientation = System.Windows.Forms.Orientation.Horizontal;
|
||||
this.RightToolStripPanel.RowMargin = new System.Windows.Forms.Padding(3, 0, 0, 0);
|
||||
this.RightToolStripPanel.Size = new System.Drawing.Size(0, 0);
|
||||
//
|
||||
// LeftToolStripPanel
|
||||
//
|
||||
this.LeftToolStripPanel.Location = new System.Drawing.Point(0, 0);
|
||||
this.LeftToolStripPanel.Name = "LeftToolStripPanel";
|
||||
this.LeftToolStripPanel.Orientation = System.Windows.Forms.Orientation.Horizontal;
|
||||
this.LeftToolStripPanel.RowMargin = new System.Windows.Forms.Padding(3, 0, 0, 0);
|
||||
this.LeftToolStripPanel.Size = new System.Drawing.Size(0, 0);
|
||||
//
|
||||
// ContentPanel
|
||||
//
|
||||
this.ContentPanel.Size = new System.Drawing.Size(710, 464);
|
||||
//
|
||||
// menuStrip1
|
||||
//
|
||||
this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.newToolStripMenuItem,
|
||||
this.openToolStripMenuItem,
|
||||
this.saveToolStripMenuItem});
|
||||
this.menuStrip1.Location = new System.Drawing.Point(0, 0);
|
||||
this.menuStrip1.Name = "menuStrip1";
|
||||
this.menuStrip1.Size = new System.Drawing.Size(710, 24);
|
||||
this.menuStrip1.TabIndex = 2;
|
||||
this.menuStrip1.Text = "menuStrip1";
|
||||
//
|
||||
// newToolStripMenuItem
|
||||
//
|
||||
this.newToolStripMenuItem.Name = "newToolStripMenuItem";
|
||||
this.newToolStripMenuItem.Size = new System.Drawing.Size(43, 20);
|
||||
this.newToolStripMenuItem.Text = "New";
|
||||
//
|
||||
// openToolStripMenuItem
|
||||
//
|
||||
this.openToolStripMenuItem.Name = "openToolStripMenuItem";
|
||||
this.openToolStripMenuItem.Size = new System.Drawing.Size(48, 20);
|
||||
this.openToolStripMenuItem.Text = "Open";
|
||||
//
|
||||
// saveToolStripMenuItem
|
||||
//
|
||||
this.saveToolStripMenuItem.Name = "saveToolStripMenuItem";
|
||||
this.saveToolStripMenuItem.Size = new System.Drawing.Size(43, 20);
|
||||
this.saveToolStripMenuItem.Text = "Save";
|
||||
//
|
||||
// toolStrip1
|
||||
//
|
||||
this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.bold,
|
||||
this.italic,
|
||||
this.underline,
|
||||
this.strikethrough,
|
||||
this.toolStripSeparator1,
|
||||
this.left,
|
||||
this.center,
|
||||
this.right});
|
||||
this.toolStrip1.Location = new System.Drawing.Point(0, 24);
|
||||
this.toolStrip1.Name = "toolStrip1";
|
||||
this.toolStrip1.Size = new System.Drawing.Size(710, 25);
|
||||
this.toolStrip1.TabIndex = 6;
|
||||
this.toolStrip1.Text = "toolStrip1";
|
||||
//
|
||||
// bold
|
||||
//
|
||||
this.bold.CheckOnClick = true;
|
||||
this.bold.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
|
||||
this.bold.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold);
|
||||
this.bold.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.bold.Name = "bold";
|
||||
this.bold.Size = new System.Drawing.Size(23, 22);
|
||||
this.bold.Text = "B";
|
||||
this.bold.Click += new System.EventHandler(this.bold_Click);
|
||||
//
|
||||
// italic
|
||||
//
|
||||
this.italic.CheckOnClick = true;
|
||||
this.italic.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
|
||||
this.italic.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Italic);
|
||||
this.italic.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.italic.Name = "italic";
|
||||
this.italic.Size = new System.Drawing.Size(23, 22);
|
||||
this.italic.Text = "I";
|
||||
this.italic.Click += new System.EventHandler(this.italic_Click);
|
||||
//
|
||||
// underline
|
||||
//
|
||||
this.underline.CheckOnClick = true;
|
||||
this.underline.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
|
||||
this.underline.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Underline);
|
||||
this.underline.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.underline.Name = "underline";
|
||||
this.underline.Size = new System.Drawing.Size(23, 22);
|
||||
this.underline.Text = "U";
|
||||
this.underline.Click += new System.EventHandler(this.underline_Click);
|
||||
//
|
||||
// strikethrough
|
||||
//
|
||||
this.strikethrough.CheckOnClick = true;
|
||||
this.strikethrough.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
|
||||
this.strikethrough.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Strikeout, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.strikethrough.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.strikethrough.Name = "strikethrough";
|
||||
this.strikethrough.Size = new System.Drawing.Size(23, 22);
|
||||
this.strikethrough.Text = "S";
|
||||
this.strikethrough.Click += new System.EventHandler(this.strikethrough_Click);
|
||||
//
|
||||
// toolStripSeparator1
|
||||
//
|
||||
this.toolStripSeparator1.Name = "toolStripSeparator1";
|
||||
this.toolStripSeparator1.Size = new System.Drawing.Size(6, 25);
|
||||
//
|
||||
// left
|
||||
//
|
||||
this.left.CheckOnClick = true;
|
||||
this.left.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
|
||||
this.left.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.left.Name = "left";
|
||||
this.left.Size = new System.Drawing.Size(31, 22);
|
||||
this.left.Text = "Left";
|
||||
this.left.Click += new System.EventHandler(this.left_Click);
|
||||
//
|
||||
// center
|
||||
//
|
||||
this.center.CheckOnClick = true;
|
||||
this.center.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
|
||||
this.center.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.center.Name = "center";
|
||||
this.center.Size = new System.Drawing.Size(46, 22);
|
||||
this.center.Text = "Center";
|
||||
this.center.Click += new System.EventHandler(this.center_Click);
|
||||
//
|
||||
// right
|
||||
//
|
||||
this.right.CheckOnClick = true;
|
||||
this.right.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
|
||||
this.right.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.right.Name = "right";
|
||||
this.right.Size = new System.Drawing.Size(39, 22);
|
||||
this.right.Text = "Right";
|
||||
this.right.Click += new System.EventHandler(this.right_Click);
|
||||
//
|
||||
// dataGridView1
|
||||
//
|
||||
this.dataGridView1.AllowUserToOrderColumns = true;
|
||||
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.A,
|
||||
this.B,
|
||||
this.C,
|
||||
this.D,
|
||||
this.E,
|
||||
this.F,
|
||||
this.G,
|
||||
this.H,
|
||||
this.I,
|
||||
this.J,
|
||||
this.K,
|
||||
this.L,
|
||||
this.M,
|
||||
this.N,
|
||||
this.O,
|
||||
this.P,
|
||||
this.Q,
|
||||
this.R,
|
||||
this.S,
|
||||
this.T,
|
||||
this.U,
|
||||
this.V,
|
||||
this.W,
|
||||
this.Y,
|
||||
this.X,
|
||||
this.Z});
|
||||
this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.dataGridView1.Location = new System.Drawing.Point(0, 49);
|
||||
this.dataGridView1.Name = "dataGridView1";
|
||||
this.dataGridView1.Size = new System.Drawing.Size(710, 440);
|
||||
this.dataGridView1.TabIndex = 7;
|
||||
this.dataGridView1.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellContentClick);
|
||||
this.dataGridView1.SelectionChanged += new System.EventHandler(this.dataGridView1_SelectionChanged);
|
||||
//
|
||||
// A
|
||||
//
|
||||
this.A.HeaderText = "A";
|
||||
this.A.Name = "A";
|
||||
//
|
||||
// B
|
||||
//
|
||||
this.B.HeaderText = "B";
|
||||
this.B.Name = "B";
|
||||
//
|
||||
// C
|
||||
//
|
||||
this.C.HeaderText = "C";
|
||||
this.C.Name = "C";
|
||||
//
|
||||
// D
|
||||
//
|
||||
this.D.HeaderText = "D";
|
||||
this.D.Name = "D";
|
||||
//
|
||||
// E
|
||||
//
|
||||
this.E.HeaderText = "E";
|
||||
this.E.Name = "E";
|
||||
//
|
||||
// F
|
||||
//
|
||||
this.F.HeaderText = "F";
|
||||
this.F.Name = "F";
|
||||
//
|
||||
// G
|
||||
//
|
||||
this.G.HeaderText = "G";
|
||||
this.G.Name = "G";
|
||||
//
|
||||
// H
|
||||
//
|
||||
this.H.HeaderText = "H";
|
||||
this.H.Name = "H";
|
||||
//
|
||||
// I
|
||||
//
|
||||
this.I.HeaderText = "I";
|
||||
this.I.Name = "I";
|
||||
//
|
||||
// J
|
||||
//
|
||||
this.J.HeaderText = "J";
|
||||
this.J.Name = "J";
|
||||
//
|
||||
// K
|
||||
//
|
||||
this.K.HeaderText = "K";
|
||||
this.K.Name = "K";
|
||||
//
|
||||
// L
|
||||
//
|
||||
this.L.HeaderText = "L";
|
||||
this.L.Name = "L";
|
||||
//
|
||||
// M
|
||||
//
|
||||
this.M.HeaderText = "M";
|
||||
this.M.Name = "M";
|
||||
//
|
||||
// N
|
||||
//
|
||||
this.N.HeaderText = "N";
|
||||
this.N.Name = "N";
|
||||
//
|
||||
// O
|
||||
//
|
||||
this.O.HeaderText = "O";
|
||||
this.O.Name = "O";
|
||||
//
|
||||
// P
|
||||
//
|
||||
this.P.HeaderText = "P";
|
||||
this.P.Name = "P";
|
||||
//
|
||||
// Q
|
||||
//
|
||||
this.Q.HeaderText = "Q";
|
||||
this.Q.Name = "Q";
|
||||
//
|
||||
// R
|
||||
//
|
||||
this.R.HeaderText = "R";
|
||||
this.R.Name = "R";
|
||||
//
|
||||
// S
|
||||
//
|
||||
this.S.HeaderText = "S";
|
||||
this.S.Name = "S";
|
||||
//
|
||||
// T
|
||||
//
|
||||
this.T.HeaderText = "T";
|
||||
this.T.Name = "T";
|
||||
//
|
||||
// U
|
||||
//
|
||||
this.U.HeaderText = "U";
|
||||
this.U.Name = "U";
|
||||
//
|
||||
// V
|
||||
//
|
||||
this.V.HeaderText = "V";
|
||||
this.V.Name = "V";
|
||||
//
|
||||
// W
|
||||
//
|
||||
this.W.HeaderText = "W";
|
||||
this.W.Name = "W";
|
||||
//
|
||||
// Y
|
||||
//
|
||||
this.Y.HeaderText = "X";
|
||||
this.Y.Name = "Y";
|
||||
//
|
||||
// X
|
||||
//
|
||||
this.X.HeaderText = "Y";
|
||||
this.X.Name = "X";
|
||||
//
|
||||
// Z
|
||||
//
|
||||
this.Z.HeaderText = "Z";
|
||||
this.Z.Name = "Z";
|
||||
//
|
||||
// TriSheet
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.Controls.Add(this.toolStripContainer1);
|
||||
this.Controls.Add(this.dataGridView1);
|
||||
this.Controls.Add(this.toolStrip1);
|
||||
this.Controls.Add(this.menuStrip1);
|
||||
this.Name = "TriSheet";
|
||||
this.Size = new System.Drawing.Size(710, 489);
|
||||
this.toolStripContainer1.ResumeLayout(false);
|
||||
this.toolStripContainer1.PerformLayout();
|
||||
this.menuStrip1.ResumeLayout(false);
|
||||
this.menuStrip1.PerformLayout();
|
||||
this.toolStrip1.ResumeLayout(false);
|
||||
this.toolStrip1.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.ToolStripContainer toolStripContainer1;
|
||||
private System.Windows.Forms.ToolStripPanel BottomToolStripPanel;
|
||||
private System.Windows.Forms.ToolStripPanel TopToolStripPanel;
|
||||
private System.Windows.Forms.ToolStripPanel RightToolStripPanel;
|
||||
private System.Windows.Forms.ToolStripPanel LeftToolStripPanel;
|
||||
private System.Windows.Forms.ToolStripContentPanel ContentPanel;
|
||||
private System.Windows.Forms.MenuStrip menuStrip1;
|
||||
private System.Windows.Forms.ToolStripMenuItem newToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem openToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem saveToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStrip toolStrip1;
|
||||
private System.Windows.Forms.ToolStripButton bold;
|
||||
private System.Windows.Forms.ToolStripButton italic;
|
||||
private System.Windows.Forms.ToolStripButton underline;
|
||||
private System.Windows.Forms.ToolStripButton strikethrough;
|
||||
private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
|
||||
private System.Windows.Forms.ToolStripButton left;
|
||||
private System.Windows.Forms.ToolStripButton center;
|
||||
private System.Windows.Forms.ToolStripButton right;
|
||||
public System.Windows.Forms.DataGridView dataGridView1;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn A;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn B;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn C;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn D;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn E;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn F;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn G;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn H;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn I;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn J;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn K;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn L;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn M;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn N;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn O;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn P;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn Q;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn R;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn S;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn T;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn U;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn V;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn W;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn Y;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn X;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn Z;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,14 +9,132 @@ using System.Linq;
|
|||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using ShiftOS.Engine;
|
||||
using ShiftOS.Objects.ShiftFS;
|
||||
|
||||
namespace ShiftOS.WinForms.Applications
|
||||
{
|
||||
public partial class TriSheet : UserControl
|
||||
[WinOpen("trisheet")]
|
||||
[AppscapeEntry("TriSheet", "Part of the trilogy of office applications for enhancement of your system. TriSheet is easliy the best spreadsheet program out there for ShiftOS.", 1024, 750, "file_skimmer;textpad", "Office")]
|
||||
[DefaultTitle("TriSheet")]
|
||||
[Launcher("TriSheet", false, null, "Office")]
|
||||
public partial class TriSheet : UserControl, IShiftOSWindow
|
||||
{
|
||||
public TriSheet()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
public void OnLoad()
|
||||
{
|
||||
UpdateUI();
|
||||
}
|
||||
|
||||
public void OnSkinLoad()
|
||||
{
|
||||
ResetFonts();
|
||||
}
|
||||
|
||||
public void ResetFonts()
|
||||
{
|
||||
fonts.Items.Clear();
|
||||
foreach (var font in FontFamily.Families)
|
||||
{
|
||||
fonts.Items.Add(font.Name);
|
||||
}
|
||||
UpdateUI();
|
||||
}
|
||||
|
||||
public bool OnUnload()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public void OnUpgrade()
|
||||
{
|
||||
}
|
||||
|
||||
public void UpdateUI()
|
||||
{
|
||||
try
|
||||
{
|
||||
bold.Checked = dataGridView1.CurrentCell.Style.Font.Bold;
|
||||
italic.Checked = dataGridView1.CurrentCell.Style.Font.Italic;
|
||||
underline.Checked = dataGridView1.CurrentCell.Style.Font.Underline;
|
||||
strikethrough.Checked = dataGridView1.CurrentCell.Style.Font.Strikeout;
|
||||
left.Checked = dataGridView1.CurrentCell.Style.Alignment == DataGridViewContentAlignment.TopLeft;
|
||||
center.Checked = dataGridView1.CurrentCell.Style.Alignment == DataGridViewContentAlignment.TopCenter;
|
||||
right.Checked = dataGridView1.CurrentCell.Style.Alignment == DataGridViewContentAlignment.TopRight;
|
||||
}
|
||||
catch
|
||||
{
|
||||
bold.Checked = false;
|
||||
italic.Checked = false;
|
||||
underline.Checked = false;
|
||||
strikethrough.Checked = false;
|
||||
left.Checked = false;
|
||||
center.Checked = false;
|
||||
right.Checked = false;
|
||||
}
|
||||
}
|
||||
|
||||
public void SetFontStyle(bool bold, bool italic, bool underline, bool strikethrough)
|
||||
{
|
||||
FontStyle fs = FontStyle.Regular;
|
||||
if (bold)
|
||||
fs |= FontStyle.Bold;
|
||||
if (italic)
|
||||
fs |= FontStyle.Italic;
|
||||
if (underline)
|
||||
fs |= FontStyle.Underline;
|
||||
if (strikethrough)
|
||||
fs |= FontStyle.Strikeout;
|
||||
dataGridView1.CurrentCell.Style.Font = new Font(dataGridView1.CurrentCell.Style.Font, fs);
|
||||
UpdateUI();
|
||||
}
|
||||
|
||||
private void left_Click(object sender, EventArgs e)
|
||||
{
|
||||
dataGridView1.CurrentCell.Style.Alignment = DataGridViewContentAlignment.TopLeft;
|
||||
}
|
||||
|
||||
private void center_Click(object sender, EventArgs e)
|
||||
{
|
||||
dataGridView1.CurrentCell.Style.Alignment = DataGridViewContentAlignment.TopCenter;
|
||||
}
|
||||
|
||||
private void right_Click(object sender, EventArgs e)
|
||||
{
|
||||
dataGridView1.CurrentCell.Style.Alignment = DataGridViewContentAlignment.TopRight;
|
||||
}
|
||||
|
||||
private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
|
||||
{
|
||||
UpdateUI();
|
||||
}
|
||||
|
||||
private void dataGridView1_SelectionChanged(object sender, EventArgs e)
|
||||
{
|
||||
UpdateUI();
|
||||
}
|
||||
|
||||
private void bold_Click(object sender, EventArgs e)
|
||||
{
|
||||
SetFontStyle(true, false, false, false);
|
||||
}
|
||||
|
||||
private void italic_Click(object sender, EventArgs e)
|
||||
{
|
||||
SetFontStyle(false, true, false, false);
|
||||
}
|
||||
|
||||
private void strikethrough_Click(object sender, EventArgs e)
|
||||
{
|
||||
SetFontStyle(false, false, false, true);
|
||||
}
|
||||
|
||||
private void underline_Click(object sender, EventArgs e)
|
||||
{
|
||||
SetFontStyle(false, false, true, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -117,4 +117,88 @@
|
|||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="menuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>19, 19</value>
|
||||
</metadata>
|
||||
<metadata name="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>229, 45</value>
|
||||
</metadata>
|
||||
<metadata name="A.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="B.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="C.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="D.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="E.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="F.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="G.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="H.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="I.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="J.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="K.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="L.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="M.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="N.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="O.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="P.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="Q.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="R.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="S.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="T.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="U.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="V.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="W.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="Y.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="X.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="Z.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
</root>
|
55
ShiftOS.WinForms/Applications/TriWrite.Designer.cs
generated
55
ShiftOS.WinForms/Applications/TriWrite.Designer.cs
generated
|
@ -29,9 +29,6 @@
|
|||
private void InitializeComponent()
|
||||
{
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(TriWrite));
|
||||
this.menuStrip1 = new System.Windows.Forms.MenuStrip();
|
||||
this.addContactToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.removeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.tvcontacts = new System.Windows.Forms.TreeView();
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
this.txtbody = new System.Windows.Forms.Label();
|
||||
|
@ -48,38 +45,16 @@
|
|||
this.strikethrough = new System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.fonts = new System.Windows.Forms.ToolStripComboBox();
|
||||
this.size = new System.Windows.Forms.ToolStripTextBox();
|
||||
this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.left = new System.Windows.Forms.ToolStripButton();
|
||||
this.center = new System.Windows.Forms.ToolStripButton();
|
||||
this.right = new System.Windows.Forms.ToolStripButton();
|
||||
this.menuStrip1.SuspendLayout();
|
||||
this.size = new System.Windows.Forms.ToolStripTextBox();
|
||||
this.panel1.SuspendLayout();
|
||||
this.menuStrip2.SuspendLayout();
|
||||
this.toolStrip1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// menuStrip1
|
||||
//
|
||||
this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.addContactToolStripMenuItem,
|
||||
this.removeToolStripMenuItem});
|
||||
this.menuStrip1.Location = new System.Drawing.Point(0, 0);
|
||||
this.menuStrip1.Name = "menuStrip1";
|
||||
this.menuStrip1.Size = new System.Drawing.Size(872, 24);
|
||||
this.menuStrip1.TabIndex = 0;
|
||||
this.menuStrip1.Text = "menuStrip1";
|
||||
//
|
||||
// addContactToolStripMenuItem
|
||||
//
|
||||
this.addContactToolStripMenuItem.Name = "addContactToolStripMenuItem";
|
||||
this.addContactToolStripMenuItem.Size = new System.Drawing.Size(12, 20);
|
||||
//
|
||||
// removeToolStripMenuItem
|
||||
//
|
||||
this.removeToolStripMenuItem.Name = "removeToolStripMenuItem";
|
||||
this.removeToolStripMenuItem.Size = new System.Drawing.Size(12, 20);
|
||||
//
|
||||
// tvcontacts
|
||||
//
|
||||
this.tvcontacts.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
|
@ -162,6 +137,7 @@
|
|||
this.txtcontents.TabIndex = 4;
|
||||
this.txtcontents.Text = "";
|
||||
this.txtcontents.SelectionChanged += new System.EventHandler(this.txtcontents_SelectionChanged);
|
||||
this.txtcontents.TextChanged += new System.EventHandler(this.txtcontents_TextChanged);
|
||||
//
|
||||
// toolStrip1
|
||||
//
|
||||
|
@ -194,6 +170,7 @@
|
|||
this.bold.Size = new System.Drawing.Size(23, 22);
|
||||
this.bold.Text = "B";
|
||||
this.bold.CheckedChanged += new System.EventHandler(this.bold_CheckedChanged);
|
||||
this.bold.Click += new System.EventHandler(this.bold_Click);
|
||||
//
|
||||
// italic
|
||||
//
|
||||
|
@ -206,6 +183,7 @@
|
|||
this.italic.Size = new System.Drawing.Size(23, 22);
|
||||
this.italic.Text = "I";
|
||||
this.italic.CheckedChanged += new System.EventHandler(this.bold_CheckedChanged);
|
||||
this.italic.Click += new System.EventHandler(this.italic_Click);
|
||||
//
|
||||
// underline
|
||||
//
|
||||
|
@ -243,14 +221,6 @@
|
|||
this.fonts.Size = new System.Drawing.Size(121, 25);
|
||||
this.fonts.SelectedIndexChanged += new System.EventHandler(this.fonts_SelectedIndexChanged);
|
||||
//
|
||||
// size
|
||||
//
|
||||
this.size.AutoSize = false;
|
||||
this.size.MaxLength = 3;
|
||||
this.size.Name = "size";
|
||||
this.size.Size = new System.Drawing.Size(40, 25);
|
||||
this.size.TextChanged += new System.EventHandler(this.size_Click);
|
||||
//
|
||||
// toolStripSeparator2
|
||||
//
|
||||
this.toolStripSeparator2.Name = "toolStripSeparator2";
|
||||
|
@ -289,6 +259,15 @@
|
|||
this.right.Text = "Right";
|
||||
this.right.Click += new System.EventHandler(this.right_Click);
|
||||
//
|
||||
// size
|
||||
//
|
||||
this.size.AutoSize = false;
|
||||
this.size.MaxLength = 3;
|
||||
this.size.Name = "size";
|
||||
this.size.Size = new System.Drawing.Size(40, 25);
|
||||
this.size.Click += new System.EventHandler(this.size_Click_1);
|
||||
this.size.TextChanged += new System.EventHandler(this.size_Click);
|
||||
//
|
||||
// TriWrite
|
||||
//
|
||||
this.Controls.Add(this.txtcontents);
|
||||
|
@ -296,8 +275,6 @@
|
|||
this.Controls.Add(this.menuStrip2);
|
||||
this.Name = "TriWrite";
|
||||
this.Size = new System.Drawing.Size(652, 414);
|
||||
this.menuStrip1.ResumeLayout(false);
|
||||
this.menuStrip1.PerformLayout();
|
||||
this.panel1.ResumeLayout(false);
|
||||
this.panel1.PerformLayout();
|
||||
this.menuStrip2.ResumeLayout(false);
|
||||
|
@ -310,10 +287,6 @@
|
|||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.MenuStrip menuStrip1;
|
||||
private System.Windows.Forms.ToolStripMenuItem addContactToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem removeToolStripMenuItem;
|
||||
private System.Windows.Forms.TreeView tvcontacts;
|
||||
private System.Windows.Forms.Panel panel1;
|
||||
private System.Windows.Forms.Label txtbody;
|
||||
|
@ -330,10 +303,10 @@
|
|||
private System.Windows.Forms.ToolStripButton strikethrough;
|
||||
private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
|
||||
private System.Windows.Forms.ToolStripComboBox fonts;
|
||||
private System.Windows.Forms.ToolStripTextBox size;
|
||||
private System.Windows.Forms.ToolStripSeparator toolStripSeparator2;
|
||||
private System.Windows.Forms.ToolStripButton left;
|
||||
private System.Windows.Forms.ToolStripButton center;
|
||||
private System.Windows.Forms.ToolStripButton right;
|
||||
private System.Windows.Forms.ToolStripTextBox size;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -178,5 +178,25 @@ namespace ShiftOS.WinForms.Applications
|
|||
UpdateUI();
|
||||
}
|
||||
}
|
||||
|
||||
private void txtcontents_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void bold_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void italic_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void size_Click_1(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
|
@ -117,9 +117,6 @@
|
|||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="menuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<data name="txtbody.Text" xml:space="preserve">
|
||||
<value>The Address Book helps you keep track of all your contacts within the digital society, whether they be friends, enemies, or whatnot.
|
||||
|
||||
|
|
Reference in a new issue