Print preview works. Working on the damn Credits box.
Signed-off-by: Melissa Avery-Weir <melissa.avery@wellsfargo.com>
10
d20 SRD Spell Lists/FrmCredits.Designer.cs
generated
@@ -29,7 +29,7 @@
|
||||
this.labelVersion = new System.Windows.Forms.Label();
|
||||
this.labelCopyright = new System.Windows.Forms.Label();
|
||||
this.labelCompanyName = new System.Windows.Forms.Label();
|
||||
this.textBoxDescription = new System.Windows.Forms.TextBox();
|
||||
this.textBoxDescription = new System.Windows.Forms.RichTextBox();
|
||||
this.okButton = new System.Windows.Forms.Button();
|
||||
this.tableLayoutPanel.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.logoPictureBox)).BeginInit();
|
||||
@@ -122,17 +122,14 @@
|
||||
//
|
||||
// textBoxDescription
|
||||
//
|
||||
this.textBoxDescription.Text = "Description";
|
||||
this.textBoxDescription.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.textBoxDescription.Location = new System.Drawing.Point(143, 107);
|
||||
this.textBoxDescription.Margin = new System.Windows.Forms.Padding(6, 3, 3, 3);
|
||||
this.textBoxDescription.Multiline = true;
|
||||
this.textBoxDescription.Name = "textBoxDescription";
|
||||
this.textBoxDescription.ReadOnly = true;
|
||||
this.textBoxDescription.ScrollBars = System.Windows.Forms.ScrollBars.Both;
|
||||
this.textBoxDescription.Size = new System.Drawing.Size(271, 126);
|
||||
this.textBoxDescription.TabIndex = 23;
|
||||
this.textBoxDescription.TabStop = false;
|
||||
this.textBoxDescription.Text = "Description";
|
||||
//
|
||||
// okButton
|
||||
//
|
||||
@@ -161,7 +158,6 @@
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
||||
this.Text = "AboutBox1";
|
||||
this.tableLayoutPanel.ResumeLayout(false);
|
||||
this.tableLayoutPanel.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.logoPictureBox)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
@@ -175,7 +171,7 @@
|
||||
private System.Windows.Forms.Label labelVersion;
|
||||
private System.Windows.Forms.Label labelCopyright;
|
||||
private System.Windows.Forms.Label labelCompanyName;
|
||||
private System.Windows.Forms.TextBox textBoxDescription;
|
||||
private System.Windows.Forms.RichTextBox textBoxDescription;
|
||||
private System.Windows.Forms.Button okButton;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,7 +15,14 @@ namespace d20_SRD_Spell_Lists {
|
||||
this.labelVersion.Text = String.Format("Version {0}", AssemblyVersion);
|
||||
this.labelCopyright.Text = AssemblyCopyright;
|
||||
this.labelCompanyName.Text = AssemblyCompany;
|
||||
this.textBoxDescription.Text = AssemblyDescription;
|
||||
|
||||
var webBrowser = new WebBrowser();
|
||||
//webBrowser.CreateControl(); // only if needed
|
||||
webBrowser.DocumentText = AssemblyDescription;
|
||||
webBrowser.Document.ExecCommand("SelectAll", false, null);
|
||||
webBrowser.Document.ExecCommand("Copy", false, null);
|
||||
this.textBoxDescription.Text = "";
|
||||
this.textBoxDescription.Paste();
|
||||
}
|
||||
|
||||
#region Assembly Attribute Accessors
|
||||
|
||||
300
d20 SRD Spell Lists/FrmMain.Designer.cs
generated
@@ -23,8 +23,8 @@
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent() {
|
||||
this.components = new System.ComponentModel.Container();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmMain));
|
||||
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
|
||||
this.lblExtra9 = new System.Windows.Forms.Label();
|
||||
@@ -71,21 +71,23 @@
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.lblDirections = new System.Windows.Forms.Label();
|
||||
this.mainToolStrip = new System.Windows.Forms.ToolStrip();
|
||||
this.toolStripSeparator = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.errorProvider = new System.Windows.Forms.ErrorProvider(this.components);
|
||||
this.spellsDataGridView = new System.Windows.Forms.DataGridView();
|
||||
this.btnAdd = new System.Windows.Forms.Button();
|
||||
this.dataGridViewImageColumn1 = new System.Windows.Forms.DataGridViewImageColumn();
|
||||
this.dataGridViewImageColumn2 = new System.Windows.Forms.DataGridViewImageColumn();
|
||||
this.newToolStripButton = new System.Windows.Forms.ToolStripButton();
|
||||
this.openToolStripButton = new System.Windows.Forms.ToolStripButton();
|
||||
this.saveToolStripButton = new System.Windows.Forms.ToolStripButton();
|
||||
this.printToolStripButton = new System.Windows.Forms.ToolStripButton();
|
||||
this.printPreviewToolstripButton = new System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripSeparator = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.cutToolStripButton = new System.Windows.Forms.ToolStripButton();
|
||||
this.copyToolStripButton = new System.Windows.Forms.ToolStripButton();
|
||||
this.pasteToolStripButton = new System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.helpToolStripButton = new System.Windows.Forms.ToolStripButton();
|
||||
this.spellsDataGridView = new System.Windows.Forms.DataGridView();
|
||||
this.btnAdd = new System.Windows.Forms.Button();
|
||||
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
|
||||
this.printDoc = new System.Drawing.Printing.PrintDocument();
|
||||
this.dataGridViewImageColumn1 = new System.Windows.Forms.DataGridViewImageColumn();
|
||||
this.dataGridViewImageColumn2 = new System.Windows.Forms.DataGridViewImageColumn();
|
||||
this.prepColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.levelColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.spellNameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
@@ -96,12 +98,17 @@
|
||||
this.tableLayoutPanel1.SuspendLayout();
|
||||
this.groupBox1.SuspendLayout();
|
||||
this.mainToolStrip.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.spellsDataGridView)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
|
||||
this.splitContainer1.Panel1.SuspendLayout();
|
||||
this.splitContainer1.Panel2.SuspendLayout();
|
||||
this.splitContainer1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// tableLayoutPanel1
|
||||
//
|
||||
this.tableLayoutPanel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.tableLayoutPanel1.AutoSize = true;
|
||||
this.tableLayoutPanel1.CellBorderStyle = System.Windows.Forms.TableLayoutPanelCellBorderStyle.Single;
|
||||
this.tableLayoutPanel1.ColumnCount = 11;
|
||||
@@ -149,7 +156,7 @@
|
||||
this.tableLayoutPanel1.Controls.Add(this.label10, 1, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.label19, 10, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.lblDC0, 1, 1);
|
||||
this.tableLayoutPanel1.Location = new System.Drawing.Point(233, 115);
|
||||
this.tableLayoutPanel1.Location = new System.Drawing.Point(233, 94);
|
||||
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
|
||||
this.tableLayoutPanel1.RowCount = 3;
|
||||
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
|
||||
@@ -494,7 +501,7 @@
|
||||
// charClassComboBox
|
||||
//
|
||||
this.charClassComboBox.FormattingEnabled = true;
|
||||
this.charClassComboBox.Location = new System.Drawing.Point(60, 88);
|
||||
this.charClassComboBox.Location = new System.Drawing.Point(56, 66);
|
||||
this.charClassComboBox.Name = "charClassComboBox";
|
||||
this.charClassComboBox.Size = new System.Drawing.Size(156, 21);
|
||||
this.charClassComboBox.TabIndex = 23;
|
||||
@@ -502,7 +509,7 @@
|
||||
// label6
|
||||
//
|
||||
this.label6.AutoSize = true;
|
||||
this.label6.Location = new System.Drawing.Point(12, 91);
|
||||
this.label6.Location = new System.Drawing.Point(12, 69);
|
||||
this.label6.Name = "label6";
|
||||
this.label6.Size = new System.Drawing.Size(35, 13);
|
||||
this.label6.TabIndex = 22;
|
||||
@@ -510,11 +517,13 @@
|
||||
//
|
||||
// groupBox1
|
||||
//
|
||||
this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.groupBox1.Controls.Add(this.txtSpellCastingAttribute);
|
||||
this.groupBox1.Controls.Add(this.lblSpellCastingAttributeMod);
|
||||
this.groupBox1.Controls.Add(this.lblModifiers);
|
||||
this.groupBox1.Controls.Add(this.lblSpellCastingAttribute);
|
||||
this.groupBox1.Location = new System.Drawing.Point(15, 115);
|
||||
this.groupBox1.Location = new System.Drawing.Point(15, 98);
|
||||
this.groupBox1.Name = "groupBox1";
|
||||
this.groupBox1.Size = new System.Drawing.Size(201, 73);
|
||||
this.groupBox1.TabIndex = 15;
|
||||
@@ -561,7 +570,7 @@
|
||||
//
|
||||
// txtCharacter
|
||||
//
|
||||
this.txtCharacter.Location = new System.Drawing.Point(60, 62);
|
||||
this.txtCharacter.Location = new System.Drawing.Point(56, 40);
|
||||
this.txtCharacter.Name = "txtCharacter";
|
||||
this.txtCharacter.Size = new System.Drawing.Size(156, 20);
|
||||
this.txtCharacter.TabIndex = 8;
|
||||
@@ -570,7 +579,7 @@
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(12, 65);
|
||||
this.label2.Location = new System.Drawing.Point(12, 43);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(38, 13);
|
||||
this.label2.TabIndex = 1;
|
||||
@@ -579,7 +588,7 @@
|
||||
// lblDirections
|
||||
//
|
||||
this.lblDirections.AutoSize = true;
|
||||
this.lblDirections.Location = new System.Drawing.Point(12, 35);
|
||||
this.lblDirections.Location = new System.Drawing.Point(12, 14);
|
||||
this.lblDirections.Name = "lblDirections";
|
||||
this.lblDirections.Size = new System.Drawing.Size(578, 13);
|
||||
this.lblDirections.TabIndex = 0;
|
||||
@@ -593,6 +602,7 @@
|
||||
this.openToolStripButton,
|
||||
this.saveToolStripButton,
|
||||
this.printToolStripButton,
|
||||
this.printPreviewToolstripButton,
|
||||
this.toolStripSeparator,
|
||||
this.cutToolStripButton,
|
||||
this.copyToolStripButton,
|
||||
@@ -601,22 +611,104 @@
|
||||
this.helpToolStripButton});
|
||||
this.mainToolStrip.Location = new System.Drawing.Point(0, 0);
|
||||
this.mainToolStrip.Name = "mainToolStrip";
|
||||
this.mainToolStrip.Size = new System.Drawing.Size(784, 25);
|
||||
this.mainToolStrip.Size = new System.Drawing.Size(710, 25);
|
||||
this.mainToolStrip.TabIndex = 1;
|
||||
//
|
||||
// newToolStripButton
|
||||
//
|
||||
this.newToolStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.newToolStripButton.Image = global::d20_SRD_Spell_Lists.Properties.Resources.page_add;
|
||||
this.newToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.newToolStripButton.Name = "newToolStripButton";
|
||||
this.newToolStripButton.Size = new System.Drawing.Size(23, 22);
|
||||
this.newToolStripButton.Text = "&New";
|
||||
//
|
||||
// openToolStripButton
|
||||
//
|
||||
this.openToolStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.openToolStripButton.Image = global::d20_SRD_Spell_Lists.Properties.Resources.folder_page;
|
||||
this.openToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.openToolStripButton.Name = "openToolStripButton";
|
||||
this.openToolStripButton.Size = new System.Drawing.Size(23, 22);
|
||||
this.openToolStripButton.Text = "&Open";
|
||||
this.openToolStripButton.Click += new System.EventHandler(this.openToolStripButton_Click);
|
||||
//
|
||||
// saveToolStripButton
|
||||
//
|
||||
this.saveToolStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.saveToolStripButton.Image = global::d20_SRD_Spell_Lists.Properties.Resources.page_save;
|
||||
this.saveToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.saveToolStripButton.Name = "saveToolStripButton";
|
||||
this.saveToolStripButton.Size = new System.Drawing.Size(23, 22);
|
||||
this.saveToolStripButton.Text = "&Save";
|
||||
this.saveToolStripButton.Click += new System.EventHandler(this.saveToolStripButton_Click);
|
||||
//
|
||||
// printToolStripButton
|
||||
//
|
||||
this.printToolStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.printToolStripButton.Image = global::d20_SRD_Spell_Lists.Properties.Resources.printer;
|
||||
this.printToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.printToolStripButton.Name = "printToolStripButton";
|
||||
this.printToolStripButton.Size = new System.Drawing.Size(23, 22);
|
||||
this.printToolStripButton.Text = "&Print";
|
||||
this.printToolStripButton.Click += new System.EventHandler(this.printToolStripButton_Click);
|
||||
//
|
||||
// printPreviewToolstripButton
|
||||
//
|
||||
this.printPreviewToolstripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.printPreviewToolstripButton.Image = global::d20_SRD_Spell_Lists.Properties.Resources.print_preview;
|
||||
this.printPreviewToolstripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.printPreviewToolstripButton.Name = "printPreviewToolstripButton";
|
||||
this.printPreviewToolstripButton.Size = new System.Drawing.Size(23, 22);
|
||||
this.printPreviewToolstripButton.Text = "Print Preview";
|
||||
this.printPreviewToolstripButton.Click += new System.EventHandler(this.printPreviewToolstripButton_Click);
|
||||
//
|
||||
// toolStripSeparator
|
||||
//
|
||||
this.toolStripSeparator.Name = "toolStripSeparator";
|
||||
this.toolStripSeparator.Size = new System.Drawing.Size(6, 25);
|
||||
//
|
||||
// cutToolStripButton
|
||||
//
|
||||
this.cutToolStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.cutToolStripButton.Image = global::d20_SRD_Spell_Lists.Properties.Resources.cut;
|
||||
this.cutToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.cutToolStripButton.Name = "cutToolStripButton";
|
||||
this.cutToolStripButton.Size = new System.Drawing.Size(23, 22);
|
||||
this.cutToolStripButton.Text = "C&ut";
|
||||
//
|
||||
// copyToolStripButton
|
||||
//
|
||||
this.copyToolStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.copyToolStripButton.Image = global::d20_SRD_Spell_Lists.Properties.Resources.page_copy;
|
||||
this.copyToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.copyToolStripButton.Name = "copyToolStripButton";
|
||||
this.copyToolStripButton.Size = new System.Drawing.Size(23, 22);
|
||||
this.copyToolStripButton.Text = "&Copy";
|
||||
//
|
||||
// pasteToolStripButton
|
||||
//
|
||||
this.pasteToolStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.pasteToolStripButton.Image = global::d20_SRD_Spell_Lists.Properties.Resources.page_paste;
|
||||
this.pasteToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.pasteToolStripButton.Name = "pasteToolStripButton";
|
||||
this.pasteToolStripButton.Size = new System.Drawing.Size(23, 22);
|
||||
this.pasteToolStripButton.Text = "&Paste";
|
||||
//
|
||||
// toolStripSeparator1
|
||||
//
|
||||
this.toolStripSeparator1.Name = "toolStripSeparator1";
|
||||
this.toolStripSeparator1.Size = new System.Drawing.Size(6, 25);
|
||||
//
|
||||
// errorProvider
|
||||
// helpToolStripButton
|
||||
//
|
||||
this.errorProvider.ContainerControl = this;
|
||||
this.helpToolStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.helpToolStripButton.Image = global::d20_SRD_Spell_Lists.Properties.Resources.information;
|
||||
this.helpToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.helpToolStripButton.Name = "helpToolStripButton";
|
||||
this.helpToolStripButton.Size = new System.Drawing.Size(23, 22);
|
||||
this.helpToolStripButton.Text = "A&bout";
|
||||
this.helpToolStripButton.Click += new System.EventHandler(this.helpToolStripButton_Click);
|
||||
//
|
||||
// spellsDataGridView
|
||||
//
|
||||
@@ -631,17 +723,18 @@
|
||||
this.descColumn,
|
||||
this.editColumn,
|
||||
this.deleteColumn});
|
||||
this.spellsDataGridView.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.spellsDataGridView.Location = new System.Drawing.Point(0, 194);
|
||||
this.spellsDataGridView.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.spellsDataGridView.Location = new System.Drawing.Point(0, 0);
|
||||
this.spellsDataGridView.Name = "spellsDataGridView";
|
||||
this.spellsDataGridView.ReadOnly = true;
|
||||
this.spellsDataGridView.Size = new System.Drawing.Size(784, 368);
|
||||
this.spellsDataGridView.Size = new System.Drawing.Size(710, 354);
|
||||
this.spellsDataGridView.TabIndex = 24;
|
||||
this.spellsDataGridView.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.spellsDataGridView_CellContentClick);
|
||||
//
|
||||
// btnAdd
|
||||
//
|
||||
this.btnAdd.Location = new System.Drawing.Point(697, 165);
|
||||
this.btnAdd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnAdd.Location = new System.Drawing.Point(623, 144);
|
||||
this.btnAdd.Name = "btnAdd";
|
||||
this.btnAdd.Size = new System.Drawing.Size(75, 23);
|
||||
this.btnAdd.TabIndex = 25;
|
||||
@@ -649,14 +742,49 @@
|
||||
this.btnAdd.UseVisualStyleBackColor = true;
|
||||
this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);
|
||||
//
|
||||
// splitContainer1
|
||||
//
|
||||
this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.splitContainer1.FixedPanel = System.Windows.Forms.FixedPanel.Panel1;
|
||||
this.splitContainer1.Location = new System.Drawing.Point(0, 25);
|
||||
this.splitContainer1.Name = "splitContainer1";
|
||||
this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal;
|
||||
//
|
||||
// splitContainer1.Panel1
|
||||
//
|
||||
this.splitContainer1.Panel1.Controls.Add(this.lblDirections);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.btnAdd);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.label2);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.txtCharacter);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.tableLayoutPanel1);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.groupBox1);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.charClassComboBox);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.label6);
|
||||
//
|
||||
// splitContainer1.Panel2
|
||||
//
|
||||
this.splitContainer1.Panel2.Controls.Add(this.spellsDataGridView);
|
||||
this.splitContainer1.Size = new System.Drawing.Size(710, 537);
|
||||
this.splitContainer1.SplitterDistance = 179;
|
||||
this.splitContainer1.TabIndex = 26;
|
||||
//
|
||||
// printDoc
|
||||
//
|
||||
this.printDoc.DocumentName = "Spell List";
|
||||
//
|
||||
// dataGridViewImageColumn1
|
||||
//
|
||||
this.dataGridViewImageColumn1.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells;
|
||||
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
dataGridViewCellStyle2.BackColor = System.Drawing.Color.Gray;
|
||||
dataGridViewCellStyle2.NullValue = ((object)(resources.GetObject("dataGridViewCellStyle2.NullValue")));
|
||||
this.dataGridViewImageColumn1.DefaultCellStyle = dataGridViewCellStyle2;
|
||||
this.dataGridViewImageColumn1.HeaderText = "";
|
||||
this.dataGridViewImageColumn1.Image = global::d20_SRD_Spell_Lists.Properties.Resources.edit_16;
|
||||
this.dataGridViewImageColumn1.Name = "dataGridViewImageColumn1";
|
||||
this.dataGridViewImageColumn1.ReadOnly = true;
|
||||
this.dataGridViewImageColumn1.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.dataGridViewImageColumn1.Width = 5;
|
||||
this.dataGridViewImageColumn1.ToolTipText = "Edit spell";
|
||||
//
|
||||
// dataGridViewImageColumn2
|
||||
//
|
||||
@@ -664,93 +792,19 @@
|
||||
this.dataGridViewImageColumn2.HeaderText = "";
|
||||
this.dataGridViewImageColumn2.Image = global::d20_SRD_Spell_Lists.Properties.Resources.editdelete_16;
|
||||
this.dataGridViewImageColumn2.Name = "dataGridViewImageColumn2";
|
||||
this.dataGridViewImageColumn2.ReadOnly = true;
|
||||
this.dataGridViewImageColumn2.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.dataGridViewImageColumn2.Width = 5;
|
||||
//
|
||||
// newToolStripButton
|
||||
//
|
||||
this.newToolStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.newToolStripButton.Image = ((System.Drawing.Image)(resources.GetObject("newToolStripButton.Image")));
|
||||
this.newToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.newToolStripButton.Name = "newToolStripButton";
|
||||
this.newToolStripButton.Size = new System.Drawing.Size(23, 22);
|
||||
this.newToolStripButton.Text = "&New";
|
||||
//
|
||||
// openToolStripButton
|
||||
//
|
||||
this.openToolStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.openToolStripButton.Image = ((System.Drawing.Image)(resources.GetObject("openToolStripButton.Image")));
|
||||
this.openToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.openToolStripButton.Name = "openToolStripButton";
|
||||
this.openToolStripButton.Size = new System.Drawing.Size(23, 22);
|
||||
this.openToolStripButton.Text = "&Open";
|
||||
this.openToolStripButton.Click += new System.EventHandler(this.openToolStripButton_Click);
|
||||
//
|
||||
// saveToolStripButton
|
||||
//
|
||||
this.saveToolStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.saveToolStripButton.Image = ((System.Drawing.Image)(resources.GetObject("saveToolStripButton.Image")));
|
||||
this.saveToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.saveToolStripButton.Name = "saveToolStripButton";
|
||||
this.saveToolStripButton.Size = new System.Drawing.Size(23, 22);
|
||||
this.saveToolStripButton.Text = "&Save";
|
||||
this.saveToolStripButton.Click += new System.EventHandler(this.saveToolStripButton_Click);
|
||||
//
|
||||
// printToolStripButton
|
||||
//
|
||||
this.printToolStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.printToolStripButton.Image = ((System.Drawing.Image)(resources.GetObject("printToolStripButton.Image")));
|
||||
this.printToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.printToolStripButton.Name = "printToolStripButton";
|
||||
this.printToolStripButton.Size = new System.Drawing.Size(23, 22);
|
||||
this.printToolStripButton.Text = "&Print";
|
||||
//
|
||||
// cutToolStripButton
|
||||
//
|
||||
this.cutToolStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.cutToolStripButton.Image = ((System.Drawing.Image)(resources.GetObject("cutToolStripButton.Image")));
|
||||
this.cutToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.cutToolStripButton.Name = "cutToolStripButton";
|
||||
this.cutToolStripButton.Size = new System.Drawing.Size(23, 22);
|
||||
this.cutToolStripButton.Text = "C&ut";
|
||||
//
|
||||
// copyToolStripButton
|
||||
//
|
||||
this.copyToolStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.copyToolStripButton.Image = ((System.Drawing.Image)(resources.GetObject("copyToolStripButton.Image")));
|
||||
this.copyToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.copyToolStripButton.Name = "copyToolStripButton";
|
||||
this.copyToolStripButton.Size = new System.Drawing.Size(23, 22);
|
||||
this.copyToolStripButton.Text = "&Copy";
|
||||
//
|
||||
// pasteToolStripButton
|
||||
//
|
||||
this.pasteToolStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.pasteToolStripButton.Image = ((System.Drawing.Image)(resources.GetObject("pasteToolStripButton.Image")));
|
||||
this.pasteToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.pasteToolStripButton.Name = "pasteToolStripButton";
|
||||
this.pasteToolStripButton.Size = new System.Drawing.Size(23, 22);
|
||||
this.pasteToolStripButton.Text = "&Paste";
|
||||
//
|
||||
// helpToolStripButton
|
||||
//
|
||||
this.helpToolStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.helpToolStripButton.Image = ((System.Drawing.Image)(resources.GetObject("helpToolStripButton.Image")));
|
||||
this.helpToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.helpToolStripButton.Name = "helpToolStripButton";
|
||||
this.helpToolStripButton.Size = new System.Drawing.Size(23, 22);
|
||||
this.helpToolStripButton.Text = "He&lp";
|
||||
//
|
||||
// prepColumn
|
||||
//
|
||||
this.prepColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.ColumnHeader;
|
||||
this.prepColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
|
||||
this.prepColumn.DataPropertyName = "IsPrepped";
|
||||
this.prepColumn.HeaderText = "Prep?";
|
||||
this.prepColumn.Name = "prepColumn";
|
||||
this.prepColumn.ReadOnly = true;
|
||||
this.prepColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.prepColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
|
||||
this.prepColumn.Width = 41;
|
||||
this.prepColumn.Width = 75;
|
||||
//
|
||||
// levelColumn
|
||||
//
|
||||
@@ -763,7 +817,7 @@
|
||||
//
|
||||
// spellNameColumn
|
||||
//
|
||||
this.spellNameColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
|
||||
this.spellNameColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells;
|
||||
this.spellNameColumn.DataPropertyName = "Name";
|
||||
this.spellNameColumn.HeaderText = "Name";
|
||||
this.spellNameColumn.Name = "spellNameColumn";
|
||||
@@ -772,7 +826,7 @@
|
||||
//
|
||||
// componentColumn
|
||||
//
|
||||
this.componentColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.ColumnHeader;
|
||||
this.componentColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells;
|
||||
this.componentColumn.DataPropertyName = "Components";
|
||||
this.componentColumn.HeaderText = "Comp";
|
||||
this.componentColumn.Name = "componentColumn";
|
||||
@@ -790,12 +844,12 @@
|
||||
// editColumn
|
||||
//
|
||||
this.editColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells;
|
||||
dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
dataGridViewCellStyle5.BackColor = System.Drawing.Color.Gray;
|
||||
dataGridViewCellStyle5.NullValue = ((object)(resources.GetObject("dataGridViewCellStyle5.NullValue")));
|
||||
this.editColumn.DefaultCellStyle = dataGridViewCellStyle5;
|
||||
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
dataGridViewCellStyle1.BackColor = System.Drawing.Color.White;
|
||||
dataGridViewCellStyle1.NullValue = ((object)(resources.GetObject("dataGridViewCellStyle1.NullValue")));
|
||||
this.editColumn.DefaultCellStyle = dataGridViewCellStyle1;
|
||||
this.editColumn.HeaderText = "";
|
||||
this.editColumn.Image = global::d20_SRD_Spell_Lists.Properties.Resources.edit_16;
|
||||
this.editColumn.Image = global::d20_SRD_Spell_Lists.Properties.Resources.pencil;
|
||||
this.editColumn.Name = "editColumn";
|
||||
this.editColumn.ReadOnly = true;
|
||||
this.editColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||
@@ -806,7 +860,7 @@
|
||||
//
|
||||
this.deleteColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells;
|
||||
this.deleteColumn.HeaderText = "";
|
||||
this.deleteColumn.Image = global::d20_SRD_Spell_Lists.Properties.Resources.editdelete_16;
|
||||
this.deleteColumn.Image = global::d20_SRD_Spell_Lists.Properties.Resources.delete;
|
||||
this.deleteColumn.Name = "deleteColumn";
|
||||
this.deleteColumn.ReadOnly = true;
|
||||
this.deleteColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||
@@ -816,16 +870,8 @@
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(784, 562);
|
||||
this.Controls.Add(this.btnAdd);
|
||||
this.Controls.Add(this.spellsDataGridView);
|
||||
this.Controls.Add(this.tableLayoutPanel1);
|
||||
this.Controls.Add(this.charClassComboBox);
|
||||
this.Controls.Add(this.label6);
|
||||
this.Controls.Add(this.groupBox1);
|
||||
this.Controls.Add(this.txtCharacter);
|
||||
this.Controls.Add(this.label2);
|
||||
this.Controls.Add(this.lblDirections);
|
||||
this.ClientSize = new System.Drawing.Size(710, 562);
|
||||
this.Controls.Add(this.splitContainer1);
|
||||
this.Controls.Add(this.mainToolStrip);
|
||||
this.Name = "FrmMain";
|
||||
this.Text = "D&D 3.5 SRD Spell Lists";
|
||||
@@ -835,8 +881,12 @@
|
||||
this.groupBox1.PerformLayout();
|
||||
this.mainToolStrip.ResumeLayout(false);
|
||||
this.mainToolStrip.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.spellsDataGridView)).EndInit();
|
||||
this.splitContainer1.Panel1.ResumeLayout(false);
|
||||
this.splitContainer1.Panel1.PerformLayout();
|
||||
this.splitContainer1.Panel2.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
|
||||
this.splitContainer1.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
@@ -862,7 +912,6 @@
|
||||
private System.Windows.Forms.GroupBox groupBox1;
|
||||
private System.Windows.Forms.Label lblSpellCastingAttributeMod;
|
||||
private System.Windows.Forms.Label lblModifiers;
|
||||
private System.Windows.Forms.ErrorProvider errorProvider;
|
||||
private System.Windows.Forms.MaskedTextBox txtSpellCastingAttribute;
|
||||
private System.Windows.Forms.ComboBox charClassComboBox;
|
||||
private System.Windows.Forms.Label label6;
|
||||
@@ -902,6 +951,11 @@
|
||||
private System.Windows.Forms.Label lblDC0;
|
||||
private System.Windows.Forms.DataGridView spellsDataGridView;
|
||||
private System.Windows.Forms.Button btnAdd;
|
||||
private System.Windows.Forms.DataGridViewImageColumn dataGridViewImageColumn1;
|
||||
private System.Windows.Forms.DataGridViewImageColumn dataGridViewImageColumn2;
|
||||
private System.Windows.Forms.SplitContainer splitContainer1;
|
||||
private System.Windows.Forms.ToolStripButton printPreviewToolstripButton;
|
||||
private System.Drawing.Printing.PrintDocument printDoc;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn prepColumn;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn levelColumn;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn spellNameColumn;
|
||||
@@ -909,8 +963,6 @@
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn descColumn;
|
||||
private System.Windows.Forms.DataGridViewImageColumn editColumn;
|
||||
private System.Windows.Forms.DataGridViewImageColumn deleteColumn;
|
||||
private System.Windows.Forms.DataGridViewImageColumn dataGridViewImageColumn1;
|
||||
private System.Windows.Forms.DataGridViewImageColumn dataGridViewImageColumn2;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -10,6 +10,7 @@ using d20_SRD_Spell_Lists.Models;
|
||||
using d20_SRD_Spell_Lists.Exceptions;
|
||||
using System.Xml.Serialization;
|
||||
using System.IO;
|
||||
using Printing.DataGridViewPrint.Tools;
|
||||
|
||||
namespace d20_SRD_Spell_Lists {
|
||||
public partial class FrmMain : Form {
|
||||
@@ -17,6 +18,7 @@ namespace d20_SRD_Spell_Lists {
|
||||
private Character character;
|
||||
private string characterFile;
|
||||
private bool loadingCharacter;
|
||||
private PrintingDataGridViewProvider printProvider;
|
||||
|
||||
public FrmMain() {
|
||||
InitializeComponent();
|
||||
@@ -33,6 +35,29 @@ namespace d20_SRD_Spell_Lists {
|
||||
//spellsDataGridView.CellValueChanged += new DataGridViewCellEventHandler(spellsDataGridView_CellValueChanged);
|
||||
}
|
||||
|
||||
private void setupPrinting() {
|
||||
printDoc = new System.Drawing.Printing.PrintDocument();
|
||||
printDoc.DocumentName = "D20 3.5 Spell List";
|
||||
printDoc.DefaultPageSettings.Margins = new System.Drawing.Printing.Margins(40, 40, 40, 20);
|
||||
printDoc.DefaultPageSettings.Landscape = true;
|
||||
printProvider = PrintingDataGridViewProvider.Create(printDoc, spellsDataGridView, true, true, true,
|
||||
new TitlePrintBlock() {
|
||||
Title = printDoc.DocumentName,
|
||||
DCs = this.tableLayoutPanel1,
|
||||
CharName = character.Name,
|
||||
CharClass = Character.getSpellcastingClassName(character.CharacterClass),
|
||||
CharAttr = character.SpellCastingAttribute.ToString(),
|
||||
CharAttrMod = character.SpellCastingAttributeModAsString(),
|
||||
CharAttrName = character.SpellCastingAttributeName
|
||||
},
|
||||
new HeaderPrintBlock() {
|
||||
Header = character.Name
|
||||
},
|
||||
new FooterPrintBlock() {
|
||||
Footer = "Page XX of YY"
|
||||
});
|
||||
}
|
||||
|
||||
private void setupSpells() {
|
||||
this.spellsDataGridView.DataSource = character.Spells;
|
||||
}
|
||||
@@ -104,10 +129,12 @@ namespace d20_SRD_Spell_Lists {
|
||||
private void txtSpellCastingAttribute_TextChanged(object sender, EventArgs e) {
|
||||
if (txtSpellCastingAttribute.Text != "") {
|
||||
character.SpellCastingAttribute = int.Parse(txtSpellCastingAttribute.Text);
|
||||
lblSpellCastingAttributeMod.Text = String.Format((character.SpellCastingAttributeMod >= 0) ? "+{0:D}" : "{0:D}", character.SpellCastingAttributeMod);
|
||||
lblSpellCastingAttributeMod.Text = character.SpellCastingAttributeModAsString();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void txtSpellCastingAttribute_LostFocus(object sender, EventArgs e) {
|
||||
updateSpellDCs();
|
||||
updateExtraSpells();
|
||||
@@ -188,6 +215,7 @@ namespace d20_SRD_Spell_Lists {
|
||||
var result = addForm.ShowDialog();
|
||||
if (result == System.Windows.Forms.DialogResult.OK) {
|
||||
character.Spells.Add(addForm.spell);
|
||||
character.Spells.Sort(new SpellInequalityComparer());
|
||||
refreshSpellList();
|
||||
}
|
||||
}
|
||||
@@ -226,5 +254,25 @@ namespace d20_SRD_Spell_Lists {
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
private void helpToolStripButton_Click(object sender, EventArgs e) {
|
||||
FrmCredits credits = new FrmCredits();
|
||||
credits.ShowDialog();
|
||||
}
|
||||
|
||||
private void printToolStripButton_Click(object sender, EventArgs e) {
|
||||
|
||||
}
|
||||
|
||||
private void printPreviewToolstripButton_Click(object sender, EventArgs e) {
|
||||
spellsDataGridView.Columns["editColumn"].Visible = false;
|
||||
spellsDataGridView.Columns["deleteColumn"].Visible = false;
|
||||
setupPrinting();
|
||||
PrintPreviewDialog ppd = new PrintPreviewDialog();
|
||||
ppd.Document = printDoc;
|
||||
ppd.ShowDialog();
|
||||
spellsDataGridView.Columns["editColumn"].Visible = true;
|
||||
spellsDataGridView.Columns["deleteColumn"].Visible = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -120,9 +120,6 @@
|
||||
<metadata name="mainToolStrip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<metadata name="errorProvider.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>137, 17</value>
|
||||
</metadata>
|
||||
<metadata name="prepColumn.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
@@ -142,145 +139,44 @@
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="dataGridViewCellStyle5.NullValue" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<data name="dataGridViewCellStyle1.NullValue" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
Qk32AgAAAAAAADYAAAAoAAAADgAAABAAAAABABgAAAAAAAAAAADEDgAAxA4AAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAYGEgoTGw8bGw8bGw8bGw8bGw8bGw8bG
|
||||
w8bGw8bGw8bGw8bGw8bGw8YAAAABgYSChP///////////////////////////////////////////8bD
|
||||
xgAAAAGBhIKE////////////////////////////////////////////xsPGAAAAAYGEgoT/////////
|
||||
///////////////////////////////////Gw8YAAAABgYSChP//////////////////////////////
|
||||
/////////////8bDxgAAAAGBhIKE////////////AAD/AAD/////////AAD/AAD/////////xsPGAAAA
|
||||
AYGEgoT///////////////8AAP8AAP8AAP8AAP/////////////Gw8YAAAABgYSChP//////////////
|
||||
/////wAA/wAA/////////////////8bDxgAAAAGBhIKE////////////////AAD/AAD/AAD/AAD/////
|
||||
////////xsPGAAAAAYGEgoT///////////8AAP8AAP////////8AAP8AAP/////////Gw8YAAAABgYSC
|
||||
hP///////////////////////////////////////////8bDxgAAAAGBhIKE////////////////////
|
||||
////////////////////////xsPGAAAAAYGEgoT/////////////////////////////////////////
|
||||
///Gw8YAAAABgYSChP///////////////////////////////////////////8bDxgAAAAGBhIKEhIKE
|
||||
hIKEhIKEhIKEhIKEhIKEhIKEhIKEhIKEhIKEhIKEhIKEhIKEAYE=
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP+EgoTGw8bGw8bGw8bGw8bGw8bGw8bG
|
||||
w8bGw8bGw8bGw8bGw8bGw8YAAAAA/4SChP///////////////////////////////////////////8bD
|
||||
xgAAAAD/hIKE////////////////////////////////////////////xsPGAAAAAP+EgoT/////////
|
||||
///////////////////////////////////Gw8YAAAAA/4SChP//////////////////////////////
|
||||
/////////////8bDxgAAAAD/hIKE////////////AAD/AAD/////////AAD/AAD/////////xsPGAAAA
|
||||
AP+EgoT///////////////8AAP8AAP8AAP8AAP/////////////Gw8YAAAAA/4SChP//////////////
|
||||
/////wAA/wAA/////////////////8bDxgAAAAD/hIKE////////////////AAD/AAD/AAD/AAD/////
|
||||
////////xsPGAAAAAP+EgoT///////////8AAP8AAP////////8AAP8AAP/////////Gw8YAAAAA/4SC
|
||||
hP///////////////////////////////////////////8bDxgAAAAD/hIKE////////////////////
|
||||
////////////////////////xsPGAAAAAP+EgoT/////////////////////////////////////////
|
||||
///Gw8YAAAAA/4SChP///////////////////////////////////////////8bDxgAAAAD/hIKEhIKE
|
||||
hIKEhIKEhIKEhIKEhIKEhIKEhIKEhIKEhIKEhIKEhIKEhIKEAP8=
|
||||
</value>
|
||||
</data>
|
||||
<metadata name="deleteColumn.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<data name="newToolStripButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<metadata name="printDoc.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>130, 17</value>
|
||||
</metadata>
|
||||
<data name="dataGridViewCellStyle2.NullValue" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
|
||||
YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAQ9JREFUOE+t09lq
|
||||
wkAUBmBfyr5DfY32jaReSOmFCyKCgkKLFrVUBZeKiEbshqRuaNw1xiXmLxMJBJ0Zc+GBw9zMfDPnHMZm
|
||||
u1ZE35s4zXCqjmC8Al+sgHLjD9y7yGFWPIbecOO45yORtMAEHnxxJHL1IyKI9JeEXqtMwOl50Q8bSS0l
|
||||
8PzBBPbqAQQxICrgjeapgKZpkJUdBmNZB+y3d/QSnsIZKrDdqZjMFYj9OR9wB1NngHrQsJC36EkrfIkT
|
||||
PuDyJ84AZbOHNF2j1Z2h9i3xAVKfOUjjZssN2oMFmq0xSkLfOmBu3E97iurnENlKxzpgbpzwO0Kh1kOy
|
||||
KFoDjHmzVuYYjRmTDZfyWh9Yd/4B2Mz2w1z7EGUAAAAASUVORK5CYII=
|
||||
</value>
|
||||
</data>
|
||||
<data name="openToolStripButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
|
||||
YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAlpJREFUOE+tk21I
|
||||
k1EYhif0oyA0sqIQCix/+GcQFFH9CCmiUBTLLEjShJofVBgL2fxoU9Pp5ubUlS5rU9f8rCyjsA+pUCRC
|
||||
TR1ppmVFUSlmhq78unrnQF1KGHTg/nEOz30993PO+7qJFrmUeiv2n+Mij+XLRLLYULdF2pxlEVIDcw0p
|
||||
AsyxD5fmI/rQ94pqi26eOlsfuZj+7BgSm01QdA4ih7m73Yx9qGpavwatjPebqCzOprPt8YKQgzFagqL0
|
||||
BEjyEFWVaBkdLHMxT34uYNwWR9nVTEoL0zHlp2DMSeaSRk6eKt4VWm5WM/rVPNN5SjDTLQebZEHNA1wr
|
||||
UvHjk3E6tsNcV62e1r3KLGqtKm6WplNpSsVqVFJsOM8VfSKFWjkGtcyZptSYzvC7XByx3zQoqCnTMvlG
|
||||
CX1prnornPUmQJcUXsbSVhGK5bIOkcmQyveeTHiv4VZ5Nk33Nc6iuSO8CIfmECYa/bE/8ON1iRipJNh5
|
||||
F0V6Bd86lfQ1JlFj1TDVq4COKCegLVIwHmGiKRB7/V6G7+5koHozymgfYRy5E1CgTWKgXcZ1i5qWp0KS
|
||||
rjgBcAJawph6FszYk/2M1O1isGYLX8p9ab6wgqP+3rMvYciS01GfzA1LFvQkQ6sQ9/khxhoCGHnox1Dt
|
||||
NvorxXw0b8Km8UQh2cip6GOzgNyMeKqKM7HdjqFZJ5pRk2YJ9aql3EnxoCJxNaZ4Ly6e3UDY3O6OEXRp
|
||||
59ApTpIhiyDh9GHORAZyPHQPB/ZtZ/cOMVvFPvh6e7F+3SrWrHRnraf7Xz/xf/rJ/kvxb84I3U1y+9/W
|
||||
AAAAAElFTkSuQmCC
|
||||
</value>
|
||||
</data>
|
||||
<data name="saveToolStripButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
|
||||
YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAixJREFUOE+tk91L
|
||||
k3EUx/cvdN9N0EW3NTWGa7EaPOUcyqphWBG9PZEv5dJlmqhYmUYtXyBb4dJJy+kknFT4BqZIjaFMJUsz
|
||||
V7TEoabYRDD49ju/6Pm1Mi+iH5zLz+c855zvo1L9j/fsaRRUvvZltHmX8Ni9gMaGCO47ZlBb8wn22yHc
|
||||
KJ9CackECgteIy93FBfOB6H0JrC3B6ipXsVGb2V1Dca0XhxOe8JLEXhbF7mgsuLLX3mCIwsr2G1+DrVa
|
||||
huWQRwjcj+a5oLTk87qCn/D78CLiTD4UXJ7GAXOTEDjrZ7ngku3dH4Jf4ZHJCLZJXlhzxpGa4hSCurth
|
||||
LsjOGo0R/A4PBsPYrHdDlgMwmRxCUF31kQvkMwFFsB7c4/+ATYkNOHL0BZKSaoXgZuU0urvATgkcP/kK
|
||||
lmMDfNu0MJqZPps6/4D7cNDSCUmyC8HVskl0+MAyADS5vrG7f0X59Tm+VFoYzZyZEVTg5NR2GAwVQnCl
|
||||
cByeZuChc40FJwpjek5MmU/YkH6uiHdOTmHwfg/0+jIhsOWNMRiouhPlnUnAQoI4rYSht7MYm5qDnHsN
|
||||
e41tHNbucUGnKxICiqXjHpTPJgHBZ/Nv4U1oHqGZJVwstiNe72JwI+J3PYA2MV8IMjOG2dzLfOatBg+2
|
||||
7JDQ0tEPX9cguvv8GHg5hH0mC9S6eiQweLumDhqNVQgo06dP9fN4UsIoJHRnOhVtmxZGM1NXKoJ3JmTH
|
||||
Cv71r/4OTrQ4xWMwWlcAAAAASUVORK5CYII=
|
||||
</value>
|
||||
</data>
|
||||
<data name="printToolStripButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
|
||||
YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAi1JREFUOE+1k/9P
|
||||
UlEYxv2nWK2tVlttGmpltrCcEQ1XUjSMaUHJNLIpNcnCragplBvUoC/okJhZLG92ySUpU8RNICdIhAio
|
||||
EF+e7r1UZMDW1jrb+8t7z/N83vucc8rK/sdyeYIwvpopWYbRaZTk0uIx0o0/V/JbGt7lVTwxT6CKKylt
|
||||
oLd8xGYihS/hKGz2WaaeWUnoTATsMz7UCztx9Ex7cYN3jkUQU4tb4DR5LZaAcyEAg4VE5YlLMFmJQoNQ
|
||||
JA61gUA6k4XPH9pCN9s+gZz2oq5Jjlq+DDfUz3Fba86bOGY9jHiUdDF0mvqT7A/F4fKEcE9nZf5d1jOI
|
||||
B4ZxVJ2U5gyc8z70akegMX3AXb0ND1+8R6/GgvZbeog61OA2K3CA2lxR34JjZ69B2T8EsVyN/Q0XcwY3
|
||||
B14iGk8UpE43UukMNqhA6QyC4Q0srcQg7dagsbWHmuDHScj7jDC9nsJTqx0a4xjuaIfRqXoMSXc/hG0q
|
||||
8C4owGnqwEGeFOXHxThH9eoEV7G7VpiboE2pK0qnm9H1JLz+NUzOBfHWEcAQsQSuqAuVDa1gVZzKGUgU
|
||||
jwoMqAzxNZbC3Od1jDvDYPdth+7NCpP8Yf4V7KoR5A1arg8gmQIoGMLxLJYjWSwEMphwb2J4MoZB2yqU
|
||||
LBZUIxHGYB9HlBfTE4jl9+GmBPTHv6lfo//+GGoaZajmXQabumXl1HHt5TRjz5Hz2HlIgB3Vp7GNzWeo
|
||||
RcX/+pq/AwHYL0leVl8fAAAAAElFTkSuQmCC
|
||||
</value>
|
||||
</data>
|
||||
<data name="cutToolStripButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
|
||||
YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAYdJREFUOE+t001L
|
||||
QlEQBuB+TdCmRVEJRRIWtRAUlKsQhFmkpZQtIiWyAlMwP5KkXS0shLqGFkgoFqWQmaRR2qIvU7FMwWhd
|
||||
8JZXkFx0uVGzOcNh5jkDw6mr+++4SN7B6fbju/uQecYm6a25+/Hdl2IJptWNmmJyL4DwWZwZUJbtayT8
|
||||
RxGqIV8oQaaaRfrxkTmw4z2G+WuKbC6PYDgOkUSJp6ccc+AgdI4luwPbHh/UCxb0S0aZN5fHTmefMTVv
|
||||
wfDEHIiBMegMpt8BZUShNoGQTIKQGxA8TTIHMoUPGF1vEOvTWHTcgqeJQahNwLqVQiRRpIdS+XcM2l4h
|
||||
1t2DI3WAP7oGoSYE3kwSPQofljcqm/kxjK4SCH0OXSMetItsUC26wZuOVptYhI0eEOuz1YI2gZnKBdpr
|
||||
6iR9V2jkKOkBQpeiCryhFFr4eioft16iU7qNho4h1Dc00QOqlRuwpSSa+UawuZXdByIZsPoUaOmWwrUf
|
||||
owcOozlwZeto7ZXDuXvCfHV/+dGfqqrf44qgu28AAAAASUVORK5CYII=
|
||||
</value>
|
||||
</data>
|
||||
<data name="copyToolStripButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
|
||||
YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAeJJREFUOE+lk9FP
|
||||
klEYxv1TSsecde0f0FpZrTbbal7URVvZuuJCr7pq2WzLNWy0iSHNwtIB9qG0ltLSYRJpBomUgZPMGSyU
|
||||
8SmJIOiv7zssCdrAzXd77s77e5/nnPdUVR20HBPfUCWNB4QsI176HB8IL/9iX2y1ubTMwx6utz0nuLhc
|
||||
GWIfCxT153Z26ep/g9Md4FJLZ2WIZdQnAM4QSJ/BH5Z5aH6NNCljm0hgdSV4MppAPxQXCq5kil31OTx7
|
||||
DjLbOeSNNJFYUgBKq31glfpmN76F9QLEZHOJc73ubXQjMreln7Q+DdP/du0/QIsxhmNK5mjTMJ/m43mI
|
||||
Qcmr5t5MZVlNpFiKrPM1vIbpVVQAOqSckF+ZekUX5UjTS+ouDFLb+CwPUPNupbN7k7WmEDcMX3hgXSpy
|
||||
IP/OsrCyhXtuA6M0g+bc4wJATqaZ/x7DF4zg8f9g/OMibb355701kERriHL5fojzd2aFjNI0mjPdBUD9
|
||||
6auUqlU/KwBZJV4skWUuvMmYV8b+Ls6jQQ81DfryO3KtfUoA/p3810G37T3VJ3TlARdvukhldjANeemx
|
||||
z2B8MS0mq80GyySHj98rD2jQOpXbtgrVNprRnO2h5lQX1Sc7leYODh27W3nN9/WZDnroDx0A5wwhdtmt
|
||||
AAAAAElFTkSuQmCC
|
||||
</value>
|
||||
</data>
|
||||
<data name="pasteToolStripButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
|
||||
YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAlBJREFUOE+1k1lI
|
||||
lGEUhn/owm6KFuqqq4LoJooIqouMwixMM4zEjKyJGJUSlcnSITU1RSe3SdPGyGVQc6tEUSkSIXFo13CM
|
||||
FonUyGmy5p9xz+Lp/z8ZbGjzpgMv5+a8z1n4Pkn6H9HZnEH7zVQayxKYF7+hMg+3ynKO4LBVMWa7xmBf
|
||||
Nme1vuSl67hi0GNMj/sVqBon5XqmnXVMOqoxF+sYH6kgJyWKF13xnD/tT7xmM7bOY4y0riY6bL8nRAWo
|
||||
5mlnDUUZR+m2ZCO/L2C4T89bywmaSgIJD/WmKnEVT/MkIg/v8wTUVeTMAuQbGBLDSNaFoI8K5lxkEDpt
|
||||
IDEafyJCfciPXiMAIX7enoDqUgNTci1TdhPjQ5nYn0dhrVgu1Fu+jO7iRTwyegmzKp9tGz0BZlMGE/Yy
|
||||
JgbSGH95irFnB5GbF5Nb3kqmqZELl2uJN5iJSS0hPMFIWGyWJ6C0MJXRQSNjfVpGH/vjur+Jj7dXCLM7
|
||||
pme+4XBOMjDsIDgihYDj+jlISW4S8qs0XA99cXWsx9m2ksFySXRWo/RWp5Cppp3efpsw3+2ysidIMwsp
|
||||
zErgc88ZnO3rkFuWYq/3ov+6JMb+OvOdLy6l8wcHvW9sWHre4Rcag69i3rX3AN7bdyDlX4zD/iBCMS/h
|
||||
U8NChioXYC2SiFZ2Vsd2T3BVmaDA3EZTh1VkVVs3rEW6lBwrHoj7yu6sVQ72c+d7ltfCXH+nm5rWJ3MA
|
||||
dY3cpJPKCwtEE7SbgJ1bBFm9trqzu9vvspjgT3FIubZa8C/N67P9regHTvjvLQ3rR38AAAAASUVORK5C
|
||||
YII=
|
||||
</value>
|
||||
</data>
|
||||
<data name="helpToolStripButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
|
||||
YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAhhJREFUOE+1U09r
|
||||
E0EU70fIR9iPUBQ8eMrR46IN5JhCDz2oBA8SBHEpCMFgG5GiwdJdq2Ijqe6ldo3Wrmhri0gXazW2YbMt
|
||||
UdNmm45ulf7R/HwzU1hLIzn54LFvhvn9eW9nOjr+R0wvBLhTXEf6bgV9w0sYLJQx/uoz2mq9c7eRn2pA
|
||||
L67Bq+/i29YeWLBL9Q6u5ktI6w6Kr1dbE3HwA3sT/o8mbAfQRgE1LZPXtsPgbjZxaXAG4y/Kh0m48sbP
|
||||
JgwbiKYAwwLYNkR4DEje5HsMFSI5l3l2kGD6/RYezzeEMgfzwzzMWSCRlV9OFk0xqhl06wNy+Tchyb2n
|
||||
dXxhv4TVaFLazppAJ9VKL0MySxYoVI0hkXaw5AbovjAWEmTur4qBqZoEdfbKVCgTBObqdolBUW0ocRs1
|
||||
P8Cx2PWQ4PJtl6a9J+xLIB1OMHIilU2b1gSMqCZ9TdTq33FEHQgJcg8rWPF3qHcJVOKeyOyoJIioDqUk
|
||||
UFM2SuUqus4YIcHEzFdYji8GxIGROAc41JJHc6E1B58wRRqWhzFrEVduTR78E5mRBSz7v0l1H0AgXgsH
|
||||
+2DNcPBp3cep0/rhezA5V0Vfbg5ug+4CqaiaI/rmyWu+t1zdQIysDxdmW9/GiZcVnO+fgvHkI+YXV7BG
|
||||
067VA9Ezt91Fyvq/wH8/lKHCW/RcfITj8Rs4evIaYmdHkBl63v4xtX1tLQ78AZ3a8qxOv4hDAAAAAElF
|
||||
TkSuQmCC
|
||||
Qk32AgAAAAAAADYAAAAoAAAADgAAABAAAAABABgAAAAAAAAAAADEDgAAxA4AAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP+EgoTGw8bGw8bGw8bGw8bGw8bGw8bG
|
||||
w8bGw8bGw8bGw8bGw8bGw8YAAAAA/4SChP///////////////////////////////////////////8bD
|
||||
xgAAAAD/hIKE////////////////////////////////////////////xsPGAAAAAP+EgoT/////////
|
||||
///////////////////////////////////Gw8YAAAAA/4SChP//////////////////////////////
|
||||
/////////////8bDxgAAAAD/hIKE////////////AAD/AAD/////////AAD/AAD/////////xsPGAAAA
|
||||
AP+EgoT///////////////8AAP8AAP8AAP8AAP/////////////Gw8YAAAAA/4SChP//////////////
|
||||
/////wAA/wAA/////////////////8bDxgAAAAD/hIKE////////////////AAD/AAD/AAD/AAD/////
|
||||
////////xsPGAAAAAP+EgoT///////////8AAP8AAP////////8AAP8AAP/////////Gw8YAAAAA/4SC
|
||||
hP///////////////////////////////////////////8bDxgAAAAD/hIKE////////////////////
|
||||
////////////////////////xsPGAAAAAP+EgoT/////////////////////////////////////////
|
||||
///Gw8YAAAAA/4SChP///////////////////////////////////////////8bDxgAAAAD/hIKEhIKE
|
||||
hIKEhIKEhIKEhIKEhIKEhIKEhIKEhIKEhIKEhIKEhIKEhIKEAP8=
|
||||
</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -97,6 +97,11 @@ namespace d20_SRD_Spell_Lists.Models {
|
||||
|
||||
public void addAllClassSpells() {
|
||||
Spells.AddRange(new MasterSpellSet().byClass(CharacterClass));
|
||||
Spells.Sort(new SpellInequalityComparer());
|
||||
}
|
||||
|
||||
public string SpellCastingAttributeModAsString() {
|
||||
return String.Format((SpellCastingAttributeMod >= 0) ? "+{0:D}" : "{0:D}", SpellCastingAttributeMod);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ namespace d20_SRD_Spell_Lists.Models {
|
||||
}
|
||||
}
|
||||
|
||||
public class SpellComparer : IEqualityComparer<Spell> {
|
||||
public class SpellEqualityComparer : IEqualityComparer<Spell> {
|
||||
public bool Equals(Spell x, Spell y) {
|
||||
return x.Name == y.Name;
|
||||
}
|
||||
@@ -64,4 +64,31 @@ namespace d20_SRD_Spell_Lists.Models {
|
||||
return obj.Name.GetHashCode();
|
||||
}
|
||||
}
|
||||
|
||||
public class SpellInequalityComparer : IComparer<Spell> {
|
||||
|
||||
public int Compare(Spell x, Spell y) {
|
||||
if (x.Level < y.Level) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (x.Level == y.Level && x.Name.CompareTo(y.Name) < 0) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (x.Level == y.Level && x.Name.CompareTo(y.Name) == 0) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (x.Level == y.Level && x.Name.CompareTo(y.Name) > 0) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (x.Level > y.Level) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
30
d20 SRD Spell Lists/Printing/FooterPrintBlock.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Drawing;
|
||||
|
||||
namespace Printing.DataGridViewPrint.Tools {
|
||||
public class FooterPrintBlock : PrintBlock {
|
||||
public string Footer { get; set; }
|
||||
public Font Font { get; set; }
|
||||
public StringFormat Format { get; set; }
|
||||
|
||||
public FooterPrintBlock() {
|
||||
Format = new StringFormat();
|
||||
Format.LineAlignment = StringAlignment.Center;
|
||||
Format.Alignment = StringAlignment.Far;
|
||||
Format.Trimming = StringTrimming.Word;
|
||||
Format.FormatFlags = StringFormatFlags.LineLimit;
|
||||
this.Font = new Font("Tahoma", 8);
|
||||
}
|
||||
|
||||
public override SizeF GetSize(Graphics g, DocumentMetrics metrics) {
|
||||
return g.MeasureString(Footer, Font, metrics.PrintAbleWidth, Format);
|
||||
}
|
||||
|
||||
public override void Draw(System.Drawing.Graphics g, Dictionary<CodeEnum, string> codes) {
|
||||
g.DrawString(string.Format("Page {0} Of {1}", codes[CodeEnum.SheetNumber], codes[CodeEnum.SheetsCount]), Font, new SolidBrush(Color.Black), Rectangle, Format);
|
||||
}
|
||||
}
|
||||
}
|
||||
33
d20 SRD Spell Lists/Printing/HeaderPrintBlock.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Drawing;
|
||||
|
||||
namespace Printing.DataGridViewPrint.Tools {
|
||||
/// <summary>
|
||||
/// The HeaderPrintBlock controls information that prints small at the very top of each page.
|
||||
/// </summary>
|
||||
public class HeaderPrintBlock : PrintBlock {
|
||||
public string Header { get; set; }
|
||||
public Font Font { get; set; }
|
||||
public StringFormat Format { get; set; }
|
||||
|
||||
public HeaderPrintBlock() {
|
||||
Format = new StringFormat();
|
||||
Format.LineAlignment = StringAlignment.Center;
|
||||
Format.Alignment = StringAlignment.Far;
|
||||
Format.Trimming = StringTrimming.Word;
|
||||
Format.FormatFlags = StringFormatFlags.LineLimit;
|
||||
this.Font = new Font("Tahoma", 8);
|
||||
}
|
||||
|
||||
public override SizeF GetSize(Graphics g, DocumentMetrics metrics) {
|
||||
return g.MeasureString(Header, Font, metrics.PrintAbleWidth, Format);
|
||||
}
|
||||
|
||||
public override void Draw(System.Drawing.Graphics g, Dictionary<CodeEnum, string> codes) {
|
||||
g.DrawString(Header, Font, new SolidBrush(Color.Black), Rectangle, Format);
|
||||
}
|
||||
}
|
||||
}
|
||||
83
d20 SRD Spell Lists/Printing/TitlePrintBlock.cs
Normal file
@@ -0,0 +1,83 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Drawing;
|
||||
using d20_SRD_Spell_Lists.Models;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Printing.DataGridViewPrint.Tools
|
||||
{
|
||||
/// <author>Blaise Braye</author>
|
||||
/// <summary>
|
||||
/// Reusable Sample of a title to print on first printed sheet
|
||||
/// </summary>
|
||||
public class TitlePrintBlock : PrintBlock
|
||||
{
|
||||
|
||||
public String Title { get; set; }
|
||||
public System.Windows.Forms.TableLayoutPanel DCs { get; set; }
|
||||
public String CharName { get; set; }
|
||||
public String CharClass { get; set; }
|
||||
public String CharAttrName { get; set; }
|
||||
public String CharAttr { get; set; }
|
||||
public String CharAttrMod { get; set; }
|
||||
public Color ForeColor { get; set; }
|
||||
public Font Font { get; set; }
|
||||
public Font BodyFont { get; set; }
|
||||
public StringFormat Format { get; set; }
|
||||
public StringFormat BodyFormat { get; set; }
|
||||
private SizeF titleSize;
|
||||
private SizeF nameSize;
|
||||
|
||||
public TitlePrintBlock()
|
||||
{
|
||||
Format = new StringFormat();
|
||||
Format.LineAlignment = StringAlignment.Near;
|
||||
Format.Alignment = StringAlignment.Center;
|
||||
Format.Trimming = StringTrimming.Word;
|
||||
Format.FormatFlags = StringFormatFlags.LineLimit;
|
||||
this.Font = new Font("Tahoma", 14, FontStyle.Bold);
|
||||
this.Title = "this is a sample title";
|
||||
this.BodyFont = new Font("Times New Roman", 12, FontStyle.Regular);
|
||||
this.ForeColor = Color.Black;
|
||||
BodyFormat = new StringFormat();
|
||||
BodyFormat.LineAlignment = StringAlignment.Center;
|
||||
BodyFormat.Alignment = StringAlignment.Near;
|
||||
BodyFormat.Trimming = StringTrimming.Word;
|
||||
BodyFormat.FormatFlags = StringFormatFlags.LineLimit;
|
||||
}
|
||||
|
||||
public override SizeF GetSize(Graphics g, DocumentMetrics metrics)
|
||||
{
|
||||
Title += " \u2014 " + CharName + "\r\n";
|
||||
titleSize = g.MeasureString(Title, Font, metrics.PrintAbleWidth, Format);
|
||||
nameSize = g.MeasureString(Title, BodyFont, metrics.PrintAbleWidth, BodyFormat);
|
||||
nameSize.Height += 5;
|
||||
SizeF tableSize = DCs.DisplayRectangle.Size;
|
||||
tableSize.Height += 100;
|
||||
|
||||
return new SizeF(metrics.PrintAbleWidth, titleSize.Height + tableSize.Height);
|
||||
}
|
||||
|
||||
public override void Draw(Graphics g, Dictionary<CodeEnum, string> codes)
|
||||
{
|
||||
g.DrawString(Title, Font, new SolidBrush(ForeColor), Rectangle, Format);
|
||||
float midWidth = Rectangle.Width / 2;
|
||||
float thirdWidth = Rectangle.Width / 3;
|
||||
float textPadding = 40;
|
||||
float tablePadding = 20;
|
||||
g.DrawString(CharName + ", " + CharClass + "\r\n", BodyFont, new SolidBrush(ForeColor), thirdWidth, Rectangle.Y + titleSize.Height + textPadding, BodyFormat);
|
||||
g.DrawString(CharAttrName + ": " + CharAttr + " | " + CharAttrMod, BodyFont, new SolidBrush(ForeColor), thirdWidth, Rectangle.Y + titleSize.Height + nameSize.Height + textPadding, BodyFormat);
|
||||
using (Bitmap printImage = new Bitmap(DCs.Width, DCs.Height)) {
|
||||
//Draw the TableLayoutPanel control to the temporary bitmap image
|
||||
Color oldBkgd = DCs.BackColor;
|
||||
DCs.BackColor = Color.White;
|
||||
DCs.DrawToBitmap(printImage, new Rectangle(0, 0, printImage.Width, printImage.Height));
|
||||
g.DrawImage(printImage, new PointF(midWidth, Rectangle.Y + titleSize.Height + tablePadding));
|
||||
DCs.BackColor = oldBkgd;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -5,12 +5,17 @@ using System.Runtime.InteropServices;
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("d20 SRD Spell Lists")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyTitle("D20 SRD Spell Lists")]
|
||||
[assembly: AssemblyDescription(@"<p>Major kudos to the following projects:</p>
|
||||
<ul>
|
||||
<li><a href=""http://www.andargor.com/"">Andargor</a>'s SRD 3.5 Database - The spell list (in XML format) is what's used here for the base spells.</li>
|
||||
<li><a href=""http://www.codeproject.com/KB/grid/GridDrawer.Net.aspx"">GridDrawer</a> - Used (with some tweaks) to print the spell lists.</li>
|
||||
<li><a href=""http://www.famfamfam.com/"">FamFamFam</a> - Their Silk icons grace these forms, although I had to create my own print preview icon.</li>
|
||||
</ul>")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("Wells Fargo NA")]
|
||||
[assembly: AssemblyProduct("d20 SRD Spell Lists")]
|
||||
[assembly: AssemblyCopyright("Copyright © Wells Fargo NA 2011")]
|
||||
[assembly: AssemblyCompany("Melissa Avery-Weir")]
|
||||
[assembly: AssemblyProduct("D20 SRD Spell Lists")]
|
||||
[assembly: AssemblyCopyright("Copyright © Melissa Avery-Weir 2011")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
@@ -32,5 +37,5 @@ using System.Runtime.InteropServices;
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
|
||||
119
d20 SRD Spell Lists/Properties/Resources.Designer.cs
generated
@@ -60,6 +60,27 @@ namespace d20_SRD_Spell_Lists.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
internal static System.Drawing.Bitmap agt_print_256 {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("agt_print-256", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
internal static System.Drawing.Bitmap cut {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("cut", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
internal static System.Drawing.Bitmap delete {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("delete", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
internal static System.Drawing.Bitmap edit_16 {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("edit-16", resourceCulture);
|
||||
@@ -87,5 +108,103 @@ namespace d20_SRD_Spell_Lists.Properties {
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
internal static System.Drawing.Bitmap filenew_256 {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("filenew-256", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
internal static System.Drawing.Bitmap fileopen_256 {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("fileopen-256", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
internal static System.Drawing.Bitmap filesave_256 {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("filesave-256", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
internal static System.Drawing.Bitmap filesave_32 {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("filesave-32", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
internal static System.Drawing.Bitmap folder_page {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("folder_page", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
internal static System.Drawing.Bitmap information {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("information", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
internal static System.Drawing.Bitmap page_add {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("page_add", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
internal static System.Drawing.Bitmap page_copy {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("page_copy", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
internal static System.Drawing.Bitmap page_paste {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("page_paste", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
internal static System.Drawing.Bitmap page_save {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("page_save", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
internal static System.Drawing.Bitmap pencil {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("pencil", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
internal static System.Drawing.Bitmap print_preview {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("print-preview", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
internal static System.Drawing.Bitmap printer {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("printer", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
internal static System.Drawing.Bitmap zoom {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("zoom", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -118,16 +118,67 @@
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<data name="editdelete_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\editdelete-32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
<data name="cut" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\cut.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="edit_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\edit-32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
<data name="folder_page" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\folder_page.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="information" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\information.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="agt_print-256" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\agt_print-256.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="filesave-32" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\filesave-32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="page_add" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\page_add.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="printer" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\printer.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="edit-16" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\edit-16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="page_save" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\page_save.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="pencil" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\pencil.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="editdelete_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\editdelete-32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="filesave-256" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\filesave-256.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="page_paste" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\page_paste.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="page_copy" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\page_copy.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="fileopen-256" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\fileopen-256.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="editdelete-16" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\editdelete-16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="filenew-256" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\filenew-256.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="edit_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\edit-32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="zoom" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\zoom.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="delete" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\delete.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="print-preview" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\print-preview.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
</root>
|
||||
BIN
d20 SRD Spell Lists/Resources/agt_print-256.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
BIN
d20 SRD Spell Lists/Resources/cut.png
Normal file
|
After Width: | Height: | Size: 648 B |
BIN
d20 SRD Spell Lists/Resources/delete.png
Normal file
|
After Width: | Height: | Size: 715 B |
BIN
d20 SRD Spell Lists/Resources/filenew-256.png
Normal file
|
After Width: | Height: | Size: 4.1 KiB |
BIN
d20 SRD Spell Lists/Resources/fileopen-256.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
d20 SRD Spell Lists/Resources/filesave-256.png
Normal file
|
After Width: | Height: | Size: 36 KiB |
BIN
d20 SRD Spell Lists/Resources/filesave-32.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
d20 SRD Spell Lists/Resources/folder_page.png
Normal file
|
After Width: | Height: | Size: 688 B |
BIN
d20 SRD Spell Lists/Resources/information.png
Normal file
|
After Width: | Height: | Size: 778 B |
BIN
d20 SRD Spell Lists/Resources/page_add.png
Normal file
|
After Width: | Height: | Size: 739 B |
BIN
d20 SRD Spell Lists/Resources/page_copy.png
Normal file
|
After Width: | Height: | Size: 663 B |
BIN
d20 SRD Spell Lists/Resources/page_paste.png
Normal file
|
After Width: | Height: | Size: 703 B |
BIN
d20 SRD Spell Lists/Resources/page_save.png
Normal file
|
After Width: | Height: | Size: 774 B |
BIN
d20 SRD Spell Lists/Resources/pencil.png
Normal file
|
After Width: | Height: | Size: 450 B |
BIN
d20 SRD Spell Lists/Resources/print-preview.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
d20 SRD Spell Lists/Resources/printer.png
Normal file
|
After Width: | Height: | Size: 731 B |
BIN
d20 SRD Spell Lists/Resources/zoom.png
Normal file
|
After Width: | Height: | Size: 692 B |
@@ -49,8 +49,11 @@
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Microsoft.ReportViewer.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
|
||||
<Reference Include="Microsoft.ReportViewer.WinForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Printing" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
@@ -83,6 +86,9 @@
|
||||
<Compile Include="Models\Character.cs" />
|
||||
<Compile Include="Models\Spell.cs" />
|
||||
<Compile Include="Models\MasterSpellSet.cs" />
|
||||
<Compile Include="Printing\FooterPrintBlock.cs" />
|
||||
<Compile Include="Printing\HeaderPrintBlock.cs" />
|
||||
<Compile Include="Printing\TitlePrintBlock.cs" />
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<EmbeddedResource Include="FrmAddEdit.resx">
|
||||
@@ -123,6 +129,23 @@
|
||||
<Content Include="AppData\UserSpellList.xml">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<None Include="Resources\print-preview.png" />
|
||||
<None Include="Resources\information.png" />
|
||||
<None Include="Resources\folder_page.png" />
|
||||
<None Include="Resources\cut.png" />
|
||||
<None Include="Resources\page_paste.png" />
|
||||
<None Include="Resources\page_copy.png" />
|
||||
<None Include="Resources\page_add.png" />
|
||||
<None Include="Resources\printer.png" />
|
||||
<None Include="Resources\pencil.png" />
|
||||
<None Include="Resources\page_save.png" />
|
||||
<None Include="Resources\delete.png" />
|
||||
<None Include="Resources\zoom.png" />
|
||||
<None Include="Resources\agt_print-256.png" />
|
||||
<None Include="Resources\filenew-256.png" />
|
||||
<None Include="Resources\fileopen-256.png" />
|
||||
<None Include="Resources\filesave-256.png" />
|
||||
<None Include="Resources\filesave-32.png" />
|
||||
<None Include="Resources\editdelete-16.png" />
|
||||
<None Include="Resources\edit-16.png" />
|
||||
<None Include="Resources\editdelete-32.png" />
|
||||
@@ -152,6 +175,13 @@
|
||||
<Install>true</Install>
|
||||
</BootstrapperPackage>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Printing.DataGridViewPrint\Printing.DataGridViewPrint.csproj">
|
||||
<Project>{FDFCB41B-C75D-476F-A4AA-EFD8C875A677}</Project>
|
||||
<Name>Printing.DataGridViewPrint</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup />
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
|
||||