Made first wizard page appear.
This commit is contained in:
parent
5109fae785
commit
ad2f8040d8
5
.gitignore
vendored
5
.gitignore
vendored
@ -6,3 +6,8 @@
|
||||
/Voile/bin/Debug/net8.0-windows
|
||||
/Voile/obj/Debug/net8.0-windows
|
||||
/Voile/obj
|
||||
/.vs/Voile.slnx/v17
|
||||
/.vs/Voile/CopilotIndices/17.14.1431.25910
|
||||
/Voile.Sqlite/bin/Debug/net8.0
|
||||
/Voile.Sqlite/obj/Debug/net8.0
|
||||
/Voile.Sqlite/obj
|
||||
|
||||
16
Voile.Sqlite/Class1.cs
Normal file
16
Voile.Sqlite/Class1.cs
Normal file
@ -0,0 +1,16 @@
|
||||
//using Microsoft.Data.Sqlite;
|
||||
|
||||
namespace Voile.Sqlite
|
||||
{
|
||||
public class Class1
|
||||
{
|
||||
public void Run()
|
||||
{
|
||||
/*SqliteConnectionStringBuilder scsb = new SqliteConnectionStringBuilder();
|
||||
scsb.DataSource = "blyat.db";
|
||||
SqliteConnection sc = new SqliteConnection(scsb.ConnectionString);
|
||||
sc.Open();*/
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
14
Voile.Sqlite/Voile.SQLite.csproj
Normal file
14
Voile.Sqlite/Voile.SQLite.csproj
Normal file
@ -0,0 +1,14 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.Data.Sqlite" Version="10.0.1" />
|
||||
<PackageReference Include="SQLitePCLRaw.bundle_e_sqlite3" Version="3.0.2" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
@ -1,3 +1,5 @@
|
||||
<Solution>
|
||||
<Project Path="../skyscraper8/skyscraper8/skyscraper8.csproj" />
|
||||
<Project Path="Voile.Sqlite/Voile.Sqlite.csproj" Id="6f554ccb-b562-4d3a-9ea3-121a4ea8b36d" DisplayName="Voile.SQLite" />
|
||||
<Project Path="Voile/Voile.csproj" />
|
||||
</Solution>
|
||||
|
||||
18
Voile/DockContents/DockTaskList.Designer.cs
generated
18
Voile/DockContents/DockTaskList.Designer.cs
generated
@ -28,21 +28,33 @@
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
components = new System.ComponentModel.Container();
|
||||
listView1 = new ListView();
|
||||
columnHeader1 = new ColumnHeader();
|
||||
imageList1 = new ImageList(components);
|
||||
toolStrip1 = new ToolStrip();
|
||||
SuspendLayout();
|
||||
//
|
||||
// listView1
|
||||
//
|
||||
listView1.Columns.AddRange(new ColumnHeader[] { columnHeader1 });
|
||||
listView1.Dock = DockStyle.Fill;
|
||||
listView1.GridLines = true;
|
||||
listView1.Location = new Point(0, 0);
|
||||
listView1.MultiSelect = false;
|
||||
listView1.Name = "listView1";
|
||||
listView1.Size = new Size(800, 450);
|
||||
listView1.SmallImageList = imageList1;
|
||||
listView1.TabIndex = 0;
|
||||
listView1.UseCompatibleStateImageBehavior = false;
|
||||
listView1.View = View.Details;
|
||||
listView1.SelectedIndexChanged += listView1_SelectedIndexChanged;
|
||||
//
|
||||
// imageList1
|
||||
//
|
||||
imageList1.ColorDepth = ColorDepth.Depth32Bit;
|
||||
imageList1.ImageSize = new Size(16, 16);
|
||||
imageList1.TransparentColor = Color.Transparent;
|
||||
//
|
||||
// toolStrip1
|
||||
//
|
||||
@ -61,13 +73,15 @@
|
||||
Controls.Add(listView1);
|
||||
Name = "DockTaskList";
|
||||
Text = "DockTaskList";
|
||||
Resize += DockTaskList_Resize;
|
||||
ResumeLayout(false);
|
||||
PerformLayout();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private ListView listView1;
|
||||
private ImageList imageList1;
|
||||
private ToolStrip toolStrip1;
|
||||
internal ListView listView1;
|
||||
private ColumnHeader columnHeader1;
|
||||
}
|
||||
}
|
||||
@ -16,6 +16,26 @@ namespace Voile.DockContents
|
||||
public DockTaskList()
|
||||
{
|
||||
InitializeComponent();
|
||||
imageList1.Images.Add(Voile.Properties.Resources.hourglass);
|
||||
imageList1.Images.Add(Voile.Properties.Resources.hourglass_go);
|
||||
imageList1.Images.Add(Voile.Properties.Resources.hourglass_link);
|
||||
}
|
||||
|
||||
private void listView1_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void DockTaskList_Resize(object sender, EventArgs e)
|
||||
{
|
||||
listView1.Columns[0].Width = listView1.Width;
|
||||
}
|
||||
|
||||
internal VoileTask AddTask(string name, VoileRunnable runnable = null)
|
||||
{
|
||||
VoileTask vt = new VoileTask(name, runnable);
|
||||
listView1.Items.Add(vt);
|
||||
return vt;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -117,6 +117,9 @@
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="imageList1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>122, 17</value>
|
||||
</metadata>
|
||||
<metadata name="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
|
||||
186
Voile/FirstRunWizard.Designer.cs
generated
Normal file
186
Voile/FirstRunWizard.Designer.cs
generated
Normal file
@ -0,0 +1,186 @@
|
||||
namespace Voile
|
||||
{
|
||||
partial class FirstRunWizard
|
||||
{
|
||||
/// <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()
|
||||
{
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FirstRunWizard));
|
||||
pictureBox1 = new PictureBox();
|
||||
tabControl1 = new TabControl();
|
||||
tabPage1 = new TabPage();
|
||||
label2 = new Label();
|
||||
label1 = new Label();
|
||||
radioButton2 = new RadioButton();
|
||||
radioButton1 = new RadioButton();
|
||||
tabPage2 = new TabPage();
|
||||
button1 = new Button();
|
||||
button2 = new Button();
|
||||
((System.ComponentModel.ISupportInitialize)pictureBox1).BeginInit();
|
||||
tabControl1.SuspendLayout();
|
||||
tabPage1.SuspendLayout();
|
||||
SuspendLayout();
|
||||
//
|
||||
// pictureBox1
|
||||
//
|
||||
pictureBox1.Image = Properties.Resources.technlgy;
|
||||
pictureBox1.Location = new Point(12, 12);
|
||||
pictureBox1.Name = "pictureBox1";
|
||||
pictureBox1.Size = new Size(120, 90);
|
||||
pictureBox1.SizeMode = PictureBoxSizeMode.Zoom;
|
||||
pictureBox1.TabIndex = 0;
|
||||
pictureBox1.TabStop = false;
|
||||
//
|
||||
// tabControl1
|
||||
//
|
||||
tabControl1.Controls.Add(tabPage1);
|
||||
tabControl1.Controls.Add(tabPage2);
|
||||
tabControl1.Location = new Point(138, 12);
|
||||
tabControl1.Name = "tabControl1";
|
||||
tabControl1.SelectedIndex = 0;
|
||||
tabControl1.Size = new Size(356, 412);
|
||||
tabControl1.TabIndex = 1;
|
||||
//
|
||||
// tabPage1
|
||||
//
|
||||
tabPage1.Controls.Add(label2);
|
||||
tabPage1.Controls.Add(label1);
|
||||
tabPage1.Controls.Add(radioButton2);
|
||||
tabPage1.Controls.Add(radioButton1);
|
||||
tabPage1.Location = new Point(4, 24);
|
||||
tabPage1.Name = "tabPage1";
|
||||
tabPage1.Padding = new Padding(3);
|
||||
tabPage1.Size = new Size(348, 384);
|
||||
tabPage1.TabIndex = 0;
|
||||
tabPage1.Text = "Welcome!";
|
||||
tabPage1.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// label2
|
||||
//
|
||||
label2.AutoSize = true;
|
||||
label2.Location = new Point(6, 3);
|
||||
label2.Name = "label2";
|
||||
label2.Size = new Size(328, 240);
|
||||
label2.TabIndex = 3;
|
||||
label2.Text = resources.GetString("label2.Text");
|
||||
//
|
||||
// label1
|
||||
//
|
||||
label1.AutoSize = true;
|
||||
label1.Location = new Point(6, 308);
|
||||
label1.Name = "label1";
|
||||
label1.Size = new Size(202, 15);
|
||||
label1.TabIndex = 2;
|
||||
label1.Text = "(You can change these options later!)";
|
||||
//
|
||||
// radioButton2
|
||||
//
|
||||
radioButton2.AutoSize = true;
|
||||
radioButton2.Location = new Point(6, 271);
|
||||
radioButton2.Name = "radioButton2";
|
||||
radioButton2.Size = new Size(299, 34);
|
||||
radioButton2.TabIndex = 1;
|
||||
radioButton2.TabStop = true;
|
||||
radioButton2.Text = "I’m an expert. Let me choose my own database and \r\nstorage options.";
|
||||
radioButton2.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// radioButton1
|
||||
//
|
||||
radioButton1.AutoSize = true;
|
||||
radioButton1.Checked = true;
|
||||
radioButton1.Location = new Point(6, 246);
|
||||
radioButton1.Name = "radioButton1";
|
||||
radioButton1.Size = new Size(298, 19);
|
||||
radioButton1.TabIndex = 0;
|
||||
radioButton1.TabStop = true;
|
||||
radioButton1.Text = "I’m a beginner. Set things up for me automatically. ";
|
||||
radioButton1.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// tabPage2
|
||||
//
|
||||
tabPage2.Location = new Point(4, 24);
|
||||
tabPage2.Name = "tabPage2";
|
||||
tabPage2.Padding = new Padding(3);
|
||||
tabPage2.Size = new Size(348, 384);
|
||||
tabPage2.TabIndex = 1;
|
||||
tabPage2.Text = "tabPage2";
|
||||
tabPage2.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// button1
|
||||
//
|
||||
button1.Location = new Point(419, 430);
|
||||
button1.Name = "button1";
|
||||
button1.Size = new Size(75, 23);
|
||||
button1.TabIndex = 2;
|
||||
button1.Text = "Next >";
|
||||
button1.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// button2
|
||||
//
|
||||
button2.Enabled = false;
|
||||
button2.Location = new Point(338, 430);
|
||||
button2.Name = "button2";
|
||||
button2.Size = new Size(75, 23);
|
||||
button2.TabIndex = 3;
|
||||
button2.Text = "< Back";
|
||||
button2.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// FirstRunWizard
|
||||
//
|
||||
AutoScaleDimensions = new SizeF(7F, 15F);
|
||||
AutoScaleMode = AutoScaleMode.Font;
|
||||
ClientSize = new Size(502, 465);
|
||||
Controls.Add(button2);
|
||||
Controls.Add(button1);
|
||||
Controls.Add(tabControl1);
|
||||
Controls.Add(pictureBox1);
|
||||
FormBorderStyle = FormBorderStyle.FixedSingle;
|
||||
MaximizeBox = false;
|
||||
MinimizeBox = false;
|
||||
Name = "FirstRunWizard";
|
||||
ShowIcon = false;
|
||||
Text = "Voile - First Run Wizard";
|
||||
((System.ComponentModel.ISupportInitialize)pictureBox1).EndInit();
|
||||
tabControl1.ResumeLayout(false);
|
||||
tabPage1.ResumeLayout(false);
|
||||
tabPage1.PerformLayout();
|
||||
ResumeLayout(false);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private PictureBox pictureBox1;
|
||||
private TabControl tabControl1;
|
||||
private TabPage tabPage1;
|
||||
private TabPage tabPage2;
|
||||
private Button button1;
|
||||
private Button button2;
|
||||
private RadioButton radioButton1;
|
||||
private RadioButton radioButton2;
|
||||
private Label label1;
|
||||
private Label label2;
|
||||
}
|
||||
}
|
||||
37
Voile/FirstRunWizard.cs
Normal file
37
Voile/FirstRunWizard.cs
Normal file
@ -0,0 +1,37 @@
|
||||
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;
|
||||
|
||||
namespace Voile
|
||||
{
|
||||
public partial class FirstRunWizard : Form
|
||||
{
|
||||
public FirstRunWizard()
|
||||
{
|
||||
InitializeComponent();
|
||||
DisplayTabPage(0);
|
||||
}
|
||||
|
||||
private TabPage[] allPages;
|
||||
public void DisplayTabPage(int target)
|
||||
{
|
||||
if (allPages == null)
|
||||
{
|
||||
allPages = new TabPage[tabControl1.TabPages.Count];
|
||||
for (int i = 0; i < tabControl1.TabPages.Count; i++)
|
||||
{
|
||||
allPages[i] = tabControl1.TabPages[i];
|
||||
}
|
||||
}
|
||||
|
||||
tabControl1.TabPages.Clear();
|
||||
tabControl1.TabPages.Add(allPages[target]);
|
||||
}
|
||||
}
|
||||
}
|
||||
138
Voile/FirstRunWizard.resx
Normal file
138
Voile/FirstRunWizard.resx
Normal file
@ -0,0 +1,138 @@
|
||||
<?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>
|
||||
<data name="label2.Text" xml:space="preserve">
|
||||
<value>Welcome to Voile!
|
||||
|
||||
It looks like you're starting Voile for the first time.
|
||||
Voile helps you catalogue and analyze your Transport Stream
|
||||
(TS) recordings in a clear and organized way.
|
||||
|
||||
To store information about and manage your recordings
|
||||
efficiently, Voile uses a database. If you also want Voile
|
||||
to extract and save embedded files from your streams,
|
||||
it can use a simple storage folder for that too.
|
||||
|
||||
No need to worry about the technical details.
|
||||
If you're not familiar with databases, Voile can set everything
|
||||
up automatically so you can start using the app right away.
|
||||
|
||||
How would you like to continue?</value>
|
||||
</data>
|
||||
</root>
|
||||
7
Voile/Form1.Designer.cs
generated
7
Voile/Form1.Designer.cs
generated
@ -61,7 +61,7 @@
|
||||
// stopAllAndExitToolStripMenuItem
|
||||
//
|
||||
stopAllAndExitToolStripMenuItem.Name = "stopAllAndExitToolStripMenuItem";
|
||||
stopAllAndExitToolStripMenuItem.Size = new Size(180, 22);
|
||||
stopAllAndExitToolStripMenuItem.Size = new Size(158, 22);
|
||||
stopAllAndExitToolStripMenuItem.Text = "Stop all and Exit";
|
||||
stopAllAndExitToolStripMenuItem.Click += stopAllAndExitToolStripMenuItem_Click;
|
||||
//
|
||||
@ -80,7 +80,7 @@
|
||||
toolStripButton1.ImageScaling = ToolStripItemImageScaling.None;
|
||||
toolStripButton1.ImageTransparentColor = Color.Magenta;
|
||||
toolStripButton1.Name = "toolStripButton1";
|
||||
toolStripButton1.Size = new Size(153, 51);
|
||||
toolStripButton1.Size = new Size(152, 51);
|
||||
toolStripButton1.Text = "Quick Connect to TCP Port";
|
||||
toolStripButton1.TextAlign = ContentAlignment.BottomCenter;
|
||||
toolStripButton1.TextImageRelation = TextImageRelation.ImageAboveText;
|
||||
@ -91,7 +91,7 @@
|
||||
toolStripButton2.ImageScaling = ToolStripItemImageScaling.None;
|
||||
toolStripButton2.ImageTransparentColor = Color.Magenta;
|
||||
toolStripButton2.Name = "toolStripButton2";
|
||||
toolStripButton2.Size = new Size(111, 51);
|
||||
toolStripButton2.Size = new Size(110, 51);
|
||||
toolStripButton2.Text = "Quick Open TS File";
|
||||
toolStripButton2.TextAlign = ContentAlignment.BottomCenter;
|
||||
toolStripButton2.TextImageRelation = TextImageRelation.ImageAboveText;
|
||||
@ -127,6 +127,7 @@
|
||||
MainMenuStrip = menuStrip1;
|
||||
Name = "Form1";
|
||||
Text = "Voile";
|
||||
Shown += Form1_Shown;
|
||||
menuStrip1.ResumeLayout(false);
|
||||
menuStrip1.PerformLayout();
|
||||
toolStrip1.ResumeLayout(false);
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
using Voile.DockContents;
|
||||
using Voile.Tasks;
|
||||
using WeifenLuo.WinFormsUI.Docking;
|
||||
|
||||
namespace Voile
|
||||
@ -26,6 +27,7 @@ namespace Voile
|
||||
DockWorldView = new DockContents.DockWorldView();
|
||||
SetDockDefault(DockWorldView, "Database");
|
||||
DockWorldView.Show(dockPanel1, DockState.DockLeft);
|
||||
|
||||
}
|
||||
|
||||
private void SetDockDefault(DockContent dock, string text)
|
||||
@ -51,5 +53,18 @@ namespace Voile
|
||||
public DockLog DockLog { get; private set; }
|
||||
public DockTaskList DockTaskList { get; private set; }
|
||||
public DockWorldView DockWorldView { get; private set; }
|
||||
|
||||
|
||||
private void Form1_Shown(object sender, EventArgs e)
|
||||
{
|
||||
VoileTask task = DockTaskList.AddTask("Initialize Database engine");
|
||||
task.ImageIndex = 1;
|
||||
|
||||
StartupInitializeDatabase initializeDatabase = new StartupInitializeDatabase();
|
||||
initializeDatabase.Form1 = this;
|
||||
initializeDatabase.Run();
|
||||
|
||||
DockTaskList.listView1.Items.Remove(task);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -22,7 +22,7 @@ namespace Voile
|
||||
Cursor hand = new Cursor(new MemoryStream(Voile.Properties.Resources.H_POINT));
|
||||
form1.Cursor = hand;
|
||||
|
||||
logger.Debug("Okay, let's rock.");
|
||||
logger.Debug("Main window showing.");
|
||||
Application.Run(form1);
|
||||
}
|
||||
}
|
||||
|
||||
72
Voile/Properties/Resources.Designer.cs
generated
72
Voile/Properties/Resources.Designer.cs
generated
@ -1,10 +1,10 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.42000
|
||||
// Dieser Code wurde von einem Tool generiert.
|
||||
// Laufzeitversion:4.0.30319.42000
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
|
||||
// der Code erneut generiert wird.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@ -13,13 +13,13 @@ namespace Voile.Properties {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// A strongly-typed resource class, for looking up localized strings, etc.
|
||||
/// Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw.
|
||||
/// </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", "18.0.0.0")]
|
||||
// Diese Klasse wurde von der StronglyTypedResourceBuilder automatisch generiert
|
||||
// -Klasse über ein Tool wie ResGen oder Visual Studio automatisch generiert.
|
||||
// Um einen Member hinzuzufügen oder zu entfernen, bearbeiten Sie die .ResX-Datei und führen dann ResGen
|
||||
// mit der /str-Option erneut aus, oder Sie erstellen Ihr VS-Projekt neu.
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
internal class Resources {
|
||||
@ -33,7 +33,7 @@ namespace Voile.Properties {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the cached ResourceManager instance used by this class.
|
||||
/// Gibt die zwischengespeicherte ResourceManager-Instanz zurück, die von dieser Klasse verwendet wird.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Resources.ResourceManager ResourceManager {
|
||||
@ -47,8 +47,8 @@ namespace Voile.Properties {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Overrides the current thread's CurrentUICulture property for all
|
||||
/// resource lookups using this strongly typed resource class.
|
||||
/// Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle
|
||||
/// Ressourcenzuordnungen, die diese stark typisierte Ressourcenklasse verwenden.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Globalization.CultureInfo Culture {
|
||||
@ -61,7 +61,7 @@ namespace Voile.Properties {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Byte[].
|
||||
/// Sucht eine lokalisierte Ressource vom Typ System.Byte[].
|
||||
/// </summary>
|
||||
internal static byte[] H_POINT {
|
||||
get {
|
||||
@ -71,7 +71,37 @@ namespace Voile.Properties {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap hourglass {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("hourglass", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap hourglass_go {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("hourglass_go", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap hourglass_link {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("hourglass_link", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap inetwiz_100_1_32x32x4 {
|
||||
get {
|
||||
@ -81,7 +111,17 @@ namespace Voile.Properties {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap technlgy {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("technlgy", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap URLPKR_141_1_32x32x4 {
|
||||
get {
|
||||
|
||||
@ -118,6 +118,15 @@
|
||||
<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="hourglass" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\hourglass.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="hourglass_go" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\hourglass_go.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="hourglass_link" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\hourglass_link.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="H_POINT" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\H_POINT.CUR;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
<comment>Mauszeiger</comment>
|
||||
@ -125,6 +134,9 @@
|
||||
<data name="inetwiz_100_1_32x32x4" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\inetwiz_100_1_32x32x4.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="technlgy" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\technlgy.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="URLPKR_141_1_32x32x4" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\URLPKR_141_1_32x32x4.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
|
||||
BIN
Voile/Resources/hourglass.png
Normal file
BIN
Voile/Resources/hourglass.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 744 B |
BIN
Voile/Resources/hourglass_go.png
Normal file
BIN
Voile/Resources/hourglass_go.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 866 B |
BIN
Voile/Resources/hourglass_link.png
Normal file
BIN
Voile/Resources/hourglass_link.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 871 B |
BIN
Voile/Resources/technlgy.bmp
Normal file
BIN
Voile/Resources/technlgy.bmp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 21 KiB |
43
Voile/Tasks/StartupInitializeDatabase.cs
Normal file
43
Voile/Tasks/StartupInitializeDatabase.cs
Normal file
@ -0,0 +1,43 @@
|
||||
using skyscraper5.Skyscraper;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Voile.Tasks
|
||||
{
|
||||
internal class StartupInitializeDatabase : VoileRunnable
|
||||
{
|
||||
public Form1 Form1 { get; internal set; }
|
||||
private Ini ini;
|
||||
public void Run()
|
||||
{
|
||||
if (IsFirstRun())
|
||||
{
|
||||
FirstRunWizard frw = new FirstRunWizard();
|
||||
DialogResult dr = frw.ShowDialog(Form1);
|
||||
}
|
||||
}
|
||||
|
||||
private bool IsFirstRun()
|
||||
{
|
||||
VoileContext voileContext = VoileContext.GetContext();
|
||||
FileInfo fileInfo = voileContext.GetVoileIniFile();
|
||||
if (!fileInfo.Exists)
|
||||
{
|
||||
voileContext.Ini = new Ini();
|
||||
ini = voileContext.Ini;
|
||||
return true;
|
||||
}
|
||||
|
||||
voileContext.Ini = new Ini(fileInfo.FullName);
|
||||
|
||||
bool firstRunComplete = ini.ReadValue("voile", "firstRunComplete", false);
|
||||
if (!firstRunComplete)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -19,6 +19,11 @@
|
||||
<PackageReference Include="log4net" Version="3.2.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\skyscraper8\skyscraper8\skyscraper8.csproj" />
|
||||
<ProjectReference Include="..\Voile.Sqlite\Voile.SQLite.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Update="Properties\Resources.Designer.cs">
|
||||
<DesignTime>True</DesignTime>
|
||||
|
||||
@ -13,6 +13,9 @@
|
||||
<Compile Update="DockContents\FloatDemo.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Update="FirstRunWizard.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Update="Form1.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
|
||||
51
Voile/VoileContext.cs
Normal file
51
Voile/VoileContext.cs
Normal file
@ -0,0 +1,51 @@
|
||||
using skyscraper5.Skyscraper;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Voile
|
||||
{
|
||||
internal class VoileContext
|
||||
{
|
||||
private static VoileContext _instance;
|
||||
|
||||
public static VoileContext GetContext()
|
||||
{
|
||||
if (_instance == null)
|
||||
{
|
||||
_instance = new VoileContext();
|
||||
}
|
||||
return _instance;
|
||||
}
|
||||
|
||||
private DirectoryInfo voileDirectory;
|
||||
public DirectoryInfo GetVoileDirectory()
|
||||
{
|
||||
if (voileDirectory == null)
|
||||
{
|
||||
Type type = typeof(VoileContext);
|
||||
Assembly assembly = type.Assembly;
|
||||
FileInfo fi = new FileInfo(assembly.Location);
|
||||
voileDirectory = fi.Directory;
|
||||
}
|
||||
return voileDirectory;
|
||||
}
|
||||
|
||||
private FileInfo voileIniFile;
|
||||
public FileInfo GetVoileIniFile()
|
||||
{
|
||||
if (voileIniFile == null)
|
||||
{
|
||||
DirectoryInfo directoryInfo = GetVoileDirectory();
|
||||
string path = Path.Combine(directoryInfo.FullName, "voile.ini");
|
||||
voileIniFile = new FileInfo(path);
|
||||
}
|
||||
return voileIniFile;
|
||||
}
|
||||
|
||||
public Ini Ini { get; set; }
|
||||
}
|
||||
}
|
||||
13
Voile/VoileRunnable.cs
Normal file
13
Voile/VoileRunnable.cs
Normal file
@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Voile
|
||||
{
|
||||
internal interface VoileRunnable
|
||||
{
|
||||
void Run();
|
||||
}
|
||||
}
|
||||
27
Voile/VoileTask.cs
Normal file
27
Voile/VoileTask.cs
Normal file
@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Voile
|
||||
{
|
||||
internal class VoileTask : ListViewItem
|
||||
{
|
||||
public VoileTask(string name, VoileRunnable runnable = null)
|
||||
{
|
||||
this.Name = name;
|
||||
this.Text = name;
|
||||
this.Guid = Guid.NewGuid();
|
||||
this.ImageIndex = 0;
|
||||
this.Runnable = runnable;
|
||||
}
|
||||
|
||||
public string Name { get; private set; }
|
||||
|
||||
public Guid Guid { get; private set; }
|
||||
|
||||
|
||||
public VoileRunnable Runnable { get; private set; }
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user