Browse Source

Реализован помощник по составлению форм экзаменационных билетов

master
parent
commit
9525963721
  1. 22
      lecturerHelper.sln
  2. 6
      lecturerHelper/App.config
  3. 192
      lecturerHelper/Form_main.Designer.cs
  4. 219
      lecturerHelper/Form_main.cs
  5. 120
      lecturerHelper/Form_main.resx
  6. 22
      lecturerHelper/Program.cs
  7. 36
      lecturerHelper/Properties/AssemblyInfo.cs
  8. 71
      lecturerHelper/Properties/Resources.Designer.cs
  9. 117
      lecturerHelper/Properties/Resources.resx
  10. 30
      lecturerHelper/Properties/Settings.Designer.cs
  11. 7
      lecturerHelper/Properties/Settings.settings
  12. 113
      lecturerHelper/lecturerHelper.csproj
  13. 4
      lecturerHelper/packages.config

22
lecturerHelper.sln

@ -0,0 +1,22 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "lecturerHelper", "lecturerHelper\lecturerHelper.csproj", "{CC26AA3F-694A-43FC-A8AE-26E5B11E097B}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{CC26AA3F-694A-43FC-A8AE-26E5B11E097B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{CC26AA3F-694A-43FC-A8AE-26E5B11E097B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CC26AA3F-694A-43FC-A8AE-26E5B11E097B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CC26AA3F-694A-43FC-A8AE-26E5B11E097B}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal

6
lecturerHelper/App.config

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
</configuration>

192
lecturerHelper/Form_main.Designer.cs generated

@ -0,0 +1,192 @@
namespace lecturerHelper
{
partial class Form_main
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.xtraTabControl = new DevExpress.XtraTab.XtraTabControl();
this.xtraTabPage1 = new DevExpress.XtraTab.XtraTabPage();
this.simpleButton1 = new DevExpress.XtraEditors.SimpleButton();
this.gridControl1 = new DevExpress.XtraGrid.GridControl();
this.gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView();
this.simpleButton2 = new DevExpress.XtraEditors.SimpleButton();
this.labelControl1 = new DevExpress.XtraEditors.LabelControl();
this.textEdit1 = new DevExpress.XtraEditors.TextEdit();
this.labelControl2 = new DevExpress.XtraEditors.LabelControl();
this.spinEdit1 = new DevExpress.XtraEditors.SpinEdit();
((System.ComponentModel.ISupportInitialize)(this.xtraTabControl)).BeginInit();
this.xtraTabControl.SuspendLayout();
this.xtraTabPage1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.gridControl1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.gridView1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.textEdit1.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.spinEdit1.Properties)).BeginInit();
this.SuspendLayout();
//
// xtraTabControl
//
this.xtraTabControl.Dock = System.Windows.Forms.DockStyle.Fill;
this.xtraTabControl.Location = new System.Drawing.Point(0, 0);
this.xtraTabControl.Name = "xtraTabControl";
this.xtraTabControl.SelectedTabPage = this.xtraTabPage1;
this.xtraTabControl.Size = new System.Drawing.Size(879, 400);
this.xtraTabControl.TabIndex = 0;
this.xtraTabControl.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] {
this.xtraTabPage1});
//
// xtraTabPage1
//
this.xtraTabPage1.Controls.Add(this.spinEdit1);
this.xtraTabPage1.Controls.Add(this.labelControl2);
this.xtraTabPage1.Controls.Add(this.textEdit1);
this.xtraTabPage1.Controls.Add(this.labelControl1);
this.xtraTabPage1.Controls.Add(this.simpleButton2);
this.xtraTabPage1.Controls.Add(this.simpleButton1);
this.xtraTabPage1.Controls.Add(this.gridControl1);
this.xtraTabPage1.Name = "xtraTabPage1";
this.xtraTabPage1.Size = new System.Drawing.Size(873, 372);
this.xtraTabPage1.Text = "Бланки билетов";
//
// simpleButton1
//
this.simpleButton1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.simpleButton1.Location = new System.Drawing.Point(686, 342);
this.simpleButton1.Name = "simpleButton1";
this.simpleButton1.Size = new System.Drawing.Size(180, 23);
this.simpleButton1.TabIndex = 1;
this.simpleButton1.Text = "Сформировать бланки билетов";
this.simpleButton1.Click += new System.EventHandler(this.simpleButton1_Click);
//
// gridControl1
//
this.gridControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.gridControl1.Location = new System.Drawing.Point(11, 37);
this.gridControl1.MainView = this.gridView1;
this.gridControl1.Name = "gridControl1";
this.gridControl1.Size = new System.Drawing.Size(855, 299);
this.gridControl1.TabIndex = 0;
this.gridControl1.UseEmbeddedNavigator = true;
this.gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
this.gridView1});
//
// gridView1
//
this.gridView1.GridControl = this.gridControl1;
this.gridView1.Name = "gridView1";
this.gridView1.NewItemRowText = "ooo";
this.gridView1.OptionsBehavior.CopyToClipboardWithColumnHeaders = false;
this.gridView1.OptionsSelection.MultiSelect = true;
this.gridView1.OptionsView.ColumnAutoWidth = false;
this.gridView1.OptionsView.ShowGroupPanel = false;
//
// simpleButton2
//
this.simpleButton2.Location = new System.Drawing.Point(11, 8);
this.simpleButton2.Name = "simpleButton2";
this.simpleButton2.Size = new System.Drawing.Size(125, 23);
this.simpleButton2.TabIndex = 2;
this.simpleButton2.Text = "Вставить из буфера";
this.simpleButton2.Click += new System.EventHandler(this.simpleButton2_Click);
//
// labelControl1
//
this.labelControl1.Location = new System.Drawing.Point(164, 13);
this.labelControl1.Name = "labelControl1";
this.labelControl1.Size = new System.Drawing.Size(65, 13);
this.labelControl1.TabIndex = 3;
this.labelControl1.Text = "Дисциплина:";
//
// textEdit1
//
this.textEdit1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.textEdit1.Location = new System.Drawing.Point(235, 10);
this.textEdit1.Name = "textEdit1";
this.textEdit1.Size = new System.Drawing.Size(444, 20);
this.textEdit1.TabIndex = 4;
//
// labelControl2
//
this.labelControl2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.labelControl2.Location = new System.Drawing.Point(686, 13);
this.labelControl2.Name = "labelControl2";
this.labelControl2.Size = new System.Drawing.Size(90, 13);
this.labelControl2.TabIndex = 5;
this.labelControl2.Text = "Кегель вопросов:";
//
// spinEdit1
//
this.spinEdit1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.spinEdit1.EditValue = new decimal(new int[] {
14,
0,
0,
0});
this.spinEdit1.Location = new System.Drawing.Point(782, 10);
this.spinEdit1.Name = "spinEdit1";
this.spinEdit1.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
this.spinEdit1.Size = new System.Drawing.Size(84, 20);
this.spinEdit1.TabIndex = 6;
//
// Form_main
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(879, 400);
this.Controls.Add(this.xtraTabControl);
this.Name = "Form_main";
this.Text = "lecturerHelper";
((System.ComponentModel.ISupportInitialize)(this.xtraTabControl)).EndInit();
this.xtraTabControl.ResumeLayout(false);
this.xtraTabPage1.ResumeLayout(false);
this.xtraTabPage1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.gridControl1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.gridView1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.textEdit1.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.spinEdit1.Properties)).EndInit();
this.ResumeLayout(false);
}
#endregion
private DevExpress.XtraTab.XtraTabControl xtraTabControl;
private DevExpress.XtraTab.XtraTabPage xtraTabPage1;
private DevExpress.XtraGrid.GridControl gridControl1;
private DevExpress.XtraGrid.Views.Grid.GridView gridView1;
private DevExpress.XtraEditors.SimpleButton simpleButton1;
private DevExpress.XtraEditors.SimpleButton simpleButton2;
private DevExpress.XtraEditors.TextEdit textEdit1;
private DevExpress.XtraEditors.LabelControl labelControl1;
private DevExpress.XtraEditors.SpinEdit spinEdit1;
private DevExpress.XtraEditors.LabelControl labelControl2;
}
}

219
lecturerHelper/Form_main.cs

@ -0,0 +1,219 @@
using DevExpress.XtraEditors;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Xceed.Words.NET;
namespace lecturerHelper
{
public partial class Form_main : Form
{
public class QuestionPackData
{
[DisplayName("Номер билета")]
public int QuestionPackNumber { get; set; }
[DisplayName("Первый вопрос")]
public string FirstQuestion { get; set; }
[DisplayName("Второй вопрос")]
public string SecondQuestion { get; set; }
[DisplayName("Третий вопрос")]
public string ThirdQuestion { get; set; }
[DisplayName("Четвертый вопрос")]
public string FourthQuestion { get; set; }
[DisplayName("Пятый вопрос")]
public string FifthQuestion { get; set; }
public QuestionPackData()
{
this.QuestionPackNumber = 0;
this.FirstQuestion = string.Empty;
this.SecondQuestion = string.Empty;
this.ThirdQuestion = string.Empty;
this.FourthQuestion = string.Empty;
this.FifthQuestion = string.Empty;
}
}
string ClipboardData
{
get
{
IDataObject iData = Clipboard.GetDataObject();
if (iData == null) return "";
if (iData.GetDataPresent(DataFormats.Text))
return (string)iData.GetData(DataFormats.Text);
return "";
}
set { Clipboard.SetDataObject(value); }
}
public Form_main()
{
InitializeComponent();
BindingList<QuestionPackData> data = new BindingList<QuestionPackData>();
data.AllowNew = true;
data.AllowRemove = true;
data.AllowEdit = true;
this.gridControl1.DataSource = data;
this.gridControl1.RefreshDataSource();
for (int i = 0; i < this.gridView1.Columns.Count; i++)
{
this.gridView1.Columns[i].BestFit();
}
}
private void simpleButton1_Click(object sender, EventArgs e)
{
if (this.textEdit1.Text.Trim() == string.Empty)
{
XtraMessageBox.Show("Введите название дисциплины",
"Ошибка",
MessageBoxButtons.OK,
MessageBoxIcon.Error);
return;
}
string partName = this.textEdit1.Text;// "Разработка САПР";
int number = 1;
DocX out_doc = DocX.Create("exam_output.docx", DocumentTypes.Document);
out_doc.MarginTop = 40;
out_doc.MarginBottom = 40;
out_doc.MarginLeft = 40;
out_doc.MarginRight = 40;
if (this.gridControl1.DataSource is BindingList<QuestionPackData>)
{
BindingList<QuestionPackData> ds = (BindingList<QuestionPackData>)this.gridControl1.DataSource;
int nPageCount = 0;
for (int i = 0; i < ds.Count; i++)
{
nPageCount++;
Table nTab = out_doc.AddTable(2, 3);
nTab.SetWidths(new float[] { 150f, 300f, 90f });
//nTab.AutoFit = AutoFit.Contents;
nTab.Rows[0].Cells[0].Paragraphs[0].Append("Федеральное государственное бюджетное образовательное учреждение высшего образования\n«Московский авиационный институт (национальный исследовательский университет)»").FontSize(10).Font("Times New Roman").Alignment = Alignment.center;
nTab.Rows[0].Cells[1].Paragraphs[0].Append("Кафедра «316»").Font("Times New Roman").FontSize(12).Alignment = Alignment.center;
nTab.Rows[0].Cells[1].InsertParagraph("").Font("Times New Roman").FontSize(3).Alignment = Alignment.center;
nTab.Rows[0].Cells[1].InsertParagraph("Э К З А М Е Н А Ц И О Н Ы Й Б И Л Е Т").Font("Times New Roman").FontSize(12).Bold().Alignment = Alignment.center;
nTab.Rows[0].Cells[1].InsertParagraph("").Font("Times New Roman").FontSize(5).Alignment = Alignment.center;
nTab.Rows[0].Cells[1].InsertParagraph("№ ").Font("Times New Roman").FontSize(12).Bold().Alignment = Alignment.center;
nTab.Rows[0].Cells[1].Paragraphs[4].Append("__" + number + "__").Font("Times New Roman").FontSize(12).Bold().UnderlineStyle(UnderlineStyle.singleLine);
nTab.Rows[0].Cells[1].InsertParagraph("").Font("Times New Roman").FontSize(5).Alignment = Alignment.center;
nTab.Rows[0].Cells[1].InsertParagraph("По дисциплине «" + partName + "»").Font("Times New Roman").FontSize(12).Alignment = Alignment.center;
nTab.Rows[0].Cells[1].VerticalAlignment = VerticalAlignment.Center;
nTab.Rows[0].Cells[2].Paragraphs[0].Append("«Утверждаю»").Font("Times New Roman").FontSize(12).Alignment = Alignment.center;
nTab.Rows[0].Cells[2].InsertParagraph("Зав. Кафедрой").Font("Times New Roman").FontSize(12).Italic().Alignment = Alignment.center;
nTab.Rows[0].Cells[2].InsertParagraph("").Font("Times New Roman").FontSize(12).Alignment = Alignment.center;
nTab.Rows[0].Cells[2].InsertParagraph("").Font("Times New Roman").FontSize(12).Alignment = Alignment.center;
nTab.Rows[0].Cells[2].InsertParagraph("________________").Font("Times New Roman").FontSize(12).Alignment = Alignment.center;
nTab.Rows[0].Cells[2].InsertParagraph("Хорошко Л.Л.").Font("Times New Roman").FontSize(12).Alignment = Alignment.center;
nTab.Rows[0].Cells[2].InsertParagraph("«__» _____ 20__ г.").Font("Times New Roman").FontSize(12).Alignment = Alignment.center;
nTab.Rows[0].Cells[2].VerticalAlignment = VerticalAlignment.Center;
nTab.Rows[1].MergeCells(0, 2);
nTab.Rows[1].Cells[0].InsertParagraph("").Font("Times New Roman").FontSize(12);
if (ds[i].FirstQuestion != string.Empty)
{
nTab.Rows[1].Cells[0].InsertParagraph(" 1. " + ds[i].FirstQuestion).Font("Times New Roman").FontSize((int)this.spinEdit1.Value);
}
if (ds[i].SecondQuestion != string.Empty)
{
nTab.Rows[1].Cells[0].InsertParagraph(" 2. " + ds[i].SecondQuestion).Font("Times New Roman").FontSize((int)this.spinEdit1.Value);
}
if (ds[i].ThirdQuestion != string.Empty)
{
nTab.Rows[1].Cells[0].InsertParagraph(" 3. " + ds[i].ThirdQuestion).Font("Times New Roman").FontSize((int)this.spinEdit1.Value);
}
if (ds[i].FourthQuestion != string.Empty)
{
nTab.Rows[1].Cells[0].InsertParagraph(" 4. " + ds[i].FourthQuestion).Font("Times New Roman").FontSize((int)this.spinEdit1.Value);
}
if (ds[i].FifthQuestion != string.Empty)
{
nTab.Rows[1].Cells[0].InsertParagraph(" 5. " + ds[i].FifthQuestion).Font("Times New Roman").FontSize((int)this.spinEdit1.Value);
}
nTab.Rows[1].Height = 140;
out_doc.InsertTable(nTab);
number++;
if (nPageCount > 2)
{
if (i < ds.Count - 1)
{
out_doc.InsertParagraph().InsertPageBreakAfterSelf();
nPageCount = 0;
}
}
}
}
out_doc.Save();
DialogResult res = XtraMessageBox.Show("Открыть файл?",
"Вопрос",
MessageBoxButtons.YesNoCancel,
MessageBoxIcon.Question,
MessageBoxDefaultButton.Button2);
if (res == DialogResult.Yes)
{
System.Diagnostics.Process.Start("exam_output.docx");
}
}
private void simpleButton2_Click(object sender, EventArgs e)
{
if (this.gridControl1.DataSource is BindingList<QuestionPackData>)
{
BindingList<QuestionPackData> ds = (BindingList<QuestionPackData>)this.gridControl1.DataSource;
string[] data = ClipboardData.Split('\n');
if (data.Length < 1) return;
foreach (string row in data)
{
string[] rowData = row.Split(new char[] { '\r', '\x09' });
QuestionPackData newData = new QuestionPackData();
for (int i = 0; i < rowData.Length; i++)
{
if (i == 0) { int i_val = 0; int.TryParse(rowData[0], out i_val); newData.QuestionPackNumber = i_val; }
if (i == 1) { newData.FirstQuestion = rowData[1]; }
if (i == 2) { newData.SecondQuestion = rowData[2]; }
if (i == 3) { newData.ThirdQuestion = rowData[3]; }
if (i == 4) { newData.FourthQuestion = rowData[4]; }
if (i == 5) { newData.FifthQuestion = rowData[5]; }
}
if (rowData.Length > 1)
{
ds.Add(newData);
}
}
this.gridControl1.RefreshDataSource();
for (int i = 0; i < this.gridView1.Columns.Count; i++)
{
this.gridView1.Columns[i].BestFit();
}
}
}
}
}

120
lecturerHelper/Form_main.resx

@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

22
lecturerHelper/Program.cs

@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace lecturerHelper
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form_main());
}
}
}

36
lecturerHelper/Properties/AssemblyInfo.cs

@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
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("lecturerHelper")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("lecturerHelper")]
[assembly: AssemblyCopyright("Copyright © 2018")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("cc26aa3f-694a-43fc-a8ae-26e5b11e097b")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// 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: AssemblyFileVersion("1.0.0.0")]

71
lecturerHelper/Properties/Resources.Designer.cs generated

@ -0,0 +1,71 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace lecturerHelper.Properties
{
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources
{
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources()
{
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager
{
get
{
if ((resourceMan == null))
{
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("lecturerHelper.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture
{
get
{
return resourceCulture;
}
set
{
resourceCulture = value;
}
}
}
}

117
lecturerHelper/Properties/Resources.resx

@ -0,0 +1,117 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

30
lecturerHelper/Properties/Settings.Designer.cs generated

@ -0,0 +1,30 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace lecturerHelper.Properties
{
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
{
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default
{
get
{
return defaultInstance;
}
}
}
}

7
lecturerHelper/Properties/Settings.settings

@ -0,0 +1,7 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
<Profiles>
<Profile Name="(Default)" />
</Profiles>
<Settings />
</SettingsFile>

113
lecturerHelper/lecturerHelper.csproj

@ -0,0 +1,113 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{CC26AA3F-694A-43FC-A8AE-26E5B11E097B}</ProjectGuid>
<OutputType>WinExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>lecturerHelper</RootNamespace>
<AssemblyName>lecturerHelper</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>none</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<UseVSHostingProcess>false</UseVSHostingProcess>
</PropertyGroup>
<ItemGroup>
<Reference Include="DevExpress.Data.v15.1, Version=15.1.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
<Reference Include="DevExpress.Office.v15.1.Core, Version=15.1.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Printing.v15.1.Core, Version=15.1.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
<Reference Include="DevExpress.RichEdit.v15.1.Core, Version=15.1.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Sparkline.v15.1.Core, Version=15.1.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
<Reference Include="DevExpress.Utils.v15.1, Version=15.1.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
<Reference Include="DevExpress.XtraBars.v15.1, Version=15.1.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.XtraEditors.v15.1, Version=15.1.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.XtraGrid.v15.1, Version=15.1.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.XtraLayout.v15.1, Version=15.1.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
<Reference Include="DevExpress.XtraPrinting.v15.1, Version=15.1.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
<Reference Include="DevExpress.XtraTreeList.v15.1, Version=15.1.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
<Reference Include="System" />
<Reference Include="System.ComponentModel.DataAnnotations" />
<Reference Include="System.Core" />
<Reference Include="System.Data.Linq" />
<Reference Include="System.Xaml" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
<Reference Include="WindowsBase" />
<Reference Include="Xceed.Words.NET, Version=1.1.0.0, Culture=neutral, PublicKeyToken=3e4669d2f30244f4, processorArchitecture=MSIL">
<HintPath>..\packages\DocX.1.1.0\lib\Xceed.Words.NET.dll</HintPath>
<Private>True</Private>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="Form_main.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Form_main.Designer.cs">
<DependentUpon>Form_main.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="Form_main.resx">
<DependentUpon>Form_main.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<None Include="packages.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</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.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>

4
lecturerHelper/packages.config

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="DocX" version="1.1.0" targetFramework="net45" />
</packages>
Loading…
Cancel
Save