some more structure
This commit is contained in:
@@ -10,7 +10,7 @@ namespace OwnChar.App.Desktop.Features.MainWindow.MainTabs
|
|||||||
|
|
||||||
protected override PluginModuleUI CreateNewUI()
|
protected override PluginModuleUI CreateNewUI()
|
||||||
{
|
{
|
||||||
return new TabCharList();
|
return new TabGroupsView();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ namespace OwnChar.App.Desktop.Features.MainWindow.MainTabs
|
|||||||
|
|
||||||
protected override PluginModuleUI CreateNewUI()
|
protected override PluginModuleUI CreateNewUI()
|
||||||
{
|
{
|
||||||
return new TabEditChar();
|
return new TabUserView();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
using OwnChar.App.Desktop.Features.MainWindow.MainTabs;
|
using OwnChar.App.Desktop.Features.MainWindow.MainTabs;
|
||||||
using Pilz.Plugins.Advanced;
|
using Pilz.Plugins.Advanced;
|
||||||
using Pilz.Plugins.Advanced.UI.Telerik;
|
using Pilz.Plugins.Advanced.UI.Telerik;
|
||||||
|
using System;
|
||||||
|
|
||||||
namespace OwnChar.App.Desktop.Features.MainWindow.QuickAction
|
namespace OwnChar.App.Desktop.Features.MainWindow.QuickAction
|
||||||
{
|
{
|
||||||
@@ -10,7 +11,7 @@ namespace OwnChar.App.Desktop.Features.MainWindow.QuickAction
|
|||||||
|
|
||||||
protected override PluginModuleUI CreateNewUI()
|
protected override PluginModuleUI CreateNewUI()
|
||||||
{
|
{
|
||||||
return null;
|
throw new NotImplementedException();
|
||||||
//return new TabEditChar();
|
//return new TabEditChar();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
using OwnChar.App.Desktop.Features.MainWindow.MainTabs;
|
using OwnChar.App.Desktop.Features.MainWindow.MainTabs;
|
||||||
using Pilz.Plugins.Advanced;
|
using Pilz.Plugins.Advanced;
|
||||||
using Pilz.Plugins.Advanced.UI.Telerik;
|
using Pilz.Plugins.Advanced.UI.Telerik;
|
||||||
|
using System;
|
||||||
|
|
||||||
namespace OwnChar.App.Desktop.Features.MainWindow.QuickAction
|
namespace OwnChar.App.Desktop.Features.MainWindow.QuickAction
|
||||||
{
|
{
|
||||||
@@ -10,7 +11,7 @@ namespace OwnChar.App.Desktop.Features.MainWindow.QuickAction
|
|||||||
|
|
||||||
protected override PluginModuleUI CreateNewUI()
|
protected override PluginModuleUI CreateNewUI()
|
||||||
{
|
{
|
||||||
return null;
|
throw new NotImplementedException();
|
||||||
//return new TabSettings();
|
//return new TabSettings();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
namespace OwnChar.App.Desktop.UI.MainTabs
|
namespace OwnChar.App.Desktop.UI.MainTabs
|
||||||
{
|
{
|
||||||
partial class TabCharList
|
partial class TabCharView
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Erforderliche Designervariable.
|
/// Erforderliche Designervariable.
|
||||||
@@ -2,9 +2,9 @@
|
|||||||
|
|
||||||
namespace OwnChar.App.Desktop.UI.MainTabs
|
namespace OwnChar.App.Desktop.UI.MainTabs
|
||||||
{
|
{
|
||||||
public partial class TabEditChar : PluginModuleUI
|
public partial class TabCharView : PluginModuleUI
|
||||||
{
|
{
|
||||||
public TabEditChar()
|
public TabCharView()
|
||||||
{
|
{
|
||||||
ActionPanelVisible = false;
|
ActionPanelVisible = false;
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
37
OwnChar.App.Desktop/UI/MainTabs/TabGroupView.Designer.cs
generated
Normal file
37
OwnChar.App.Desktop/UI/MainTabs/TabGroupView.Designer.cs
generated
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
namespace OwnChar.App.Desktop.UI.MainTabs
|
||||||
|
{
|
||||||
|
partial class TabGroupView
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Erforderliche Designervariable.
|
||||||
|
/// </summary>
|
||||||
|
private System.ComponentModel.IContainer components = null;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Verwendete Ressourcen bereinigen.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="disposing">True, wenn verwaltete Ressourcen gelöscht werden sollen; andernfalls False.</param>
|
||||||
|
protected override void Dispose(bool disposing)
|
||||||
|
{
|
||||||
|
if (disposing && (components != null))
|
||||||
|
{
|
||||||
|
components.Dispose();
|
||||||
|
}
|
||||||
|
base.Dispose(disposing);
|
||||||
|
}
|
||||||
|
|
||||||
|
#region Vom Komponenten-Designer generierter Code
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Erforderliche Methode für die Designerunterstützung.
|
||||||
|
/// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden.
|
||||||
|
/// </summary>
|
||||||
|
private void InitializeComponent()
|
||||||
|
{
|
||||||
|
components = new System.ComponentModel.Container();
|
||||||
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
|
}
|
||||||
22
OwnChar.App.Desktop/UI/MainTabs/TabGroupView.cs
Normal file
22
OwnChar.App.Desktop/UI/MainTabs/TabGroupView.cs
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
using Pilz.Plugins.Advanced.UI.Telerik;
|
||||||
|
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 OwnChar.App.Desktop.UI.MainTabs
|
||||||
|
{
|
||||||
|
public partial class TabGroupView : PluginModuleUI
|
||||||
|
{
|
||||||
|
public TabGroupView()
|
||||||
|
{
|
||||||
|
ActionPanelVisible = false;
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
37
OwnChar.App.Desktop/UI/MainTabs/TabGroupsView.Designer.cs
generated
Normal file
37
OwnChar.App.Desktop/UI/MainTabs/TabGroupsView.Designer.cs
generated
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
namespace OwnChar.App.Desktop.UI.MainTabs
|
||||||
|
{
|
||||||
|
partial class TabGroupsView
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Erforderliche Designervariable.
|
||||||
|
/// </summary>
|
||||||
|
private System.ComponentModel.IContainer components = null;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Verwendete Ressourcen bereinigen.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="disposing">True, wenn verwaltete Ressourcen gelöscht werden sollen; andernfalls False.</param>
|
||||||
|
protected override void Dispose(bool disposing)
|
||||||
|
{
|
||||||
|
if (disposing && (components != null))
|
||||||
|
{
|
||||||
|
components.Dispose();
|
||||||
|
}
|
||||||
|
base.Dispose(disposing);
|
||||||
|
}
|
||||||
|
|
||||||
|
#region Vom Komponenten-Designer generierter Code
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Erforderliche Methode für die Designerunterstützung.
|
||||||
|
/// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden.
|
||||||
|
/// </summary>
|
||||||
|
private void InitializeComponent()
|
||||||
|
{
|
||||||
|
components = new System.ComponentModel.Container();
|
||||||
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
|
}
|
||||||
22
OwnChar.App.Desktop/UI/MainTabs/TabGroupsView.cs
Normal file
22
OwnChar.App.Desktop/UI/MainTabs/TabGroupsView.cs
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
using Pilz.Plugins.Advanced.UI.Telerik;
|
||||||
|
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 OwnChar.App.Desktop.UI.MainTabs
|
||||||
|
{
|
||||||
|
public partial class TabGroupsView : PluginModuleUI
|
||||||
|
{
|
||||||
|
public TabGroupsView()
|
||||||
|
{
|
||||||
|
ActionPanelVisible = false;
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
namespace OwnChar.App.Desktop.UI.MainTabs
|
namespace OwnChar.App.Desktop.UI.MainTabs
|
||||||
{
|
{
|
||||||
partial class TabEditChar
|
partial class TabUserView
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Erforderliche Designervariable.
|
/// Erforderliche Designervariable.
|
||||||
@@ -11,9 +11,9 @@ using System.Windows.Forms;
|
|||||||
|
|
||||||
namespace OwnChar.App.Desktop.UI.MainTabs
|
namespace OwnChar.App.Desktop.UI.MainTabs
|
||||||
{
|
{
|
||||||
public partial class TabCharList : PluginModuleUI
|
public partial class TabUserView : PluginModuleUI
|
||||||
{
|
{
|
||||||
public TabCharList()
|
public TabUserView()
|
||||||
{
|
{
|
||||||
ActionPanelVisible = false;
|
ActionPanelVisible = false;
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
120
OwnChar.App.Desktop/UI/MainTabs/TabUserView.resx
Normal file
120
OwnChar.App.Desktop/UI/MainTabs/TabUserView.resx
Normal file
@@ -0,0 +1,120 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<root>
|
||||||
|
<!--
|
||||||
|
Microsoft ResX Schema
|
||||||
|
|
||||||
|
Version 2.0
|
||||||
|
|
||||||
|
The primary goals of this format is to allow a simple XML format
|
||||||
|
that is mostly human readable. The generation and parsing of the
|
||||||
|
various data types are done through the TypeConverter classes
|
||||||
|
associated with the data types.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
... ado.net/XML headers & schema ...
|
||||||
|
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||||
|
<resheader name="version">2.0</resheader>
|
||||||
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||||
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||||
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||||
|
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||||
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||||
|
</data>
|
||||||
|
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||||
|
<comment>This is a comment</comment>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
There are any number of "resheader" rows that contain simple
|
||||||
|
name/value pairs.
|
||||||
|
|
||||||
|
Each data row contains a name, and value. The row also contains a
|
||||||
|
type or mimetype. Type corresponds to a .NET class that support
|
||||||
|
text/value conversion through the TypeConverter architecture.
|
||||||
|
Classes that don't support this are serialized and stored with the
|
||||||
|
mimetype set.
|
||||||
|
|
||||||
|
The mimetype is used for serialized objects, and tells the
|
||||||
|
ResXResourceReader how to depersist the object. This is currently not
|
||||||
|
extensible. For a given mimetype the value must be set accordingly:
|
||||||
|
|
||||||
|
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||||
|
that the ResXResourceWriter will generate, however the reader can
|
||||||
|
read any of the formats listed below.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.binary.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.soap.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||||
|
value : The object must be serialized into a byte array
|
||||||
|
: using a System.ComponentModel.TypeConverter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
-->
|
||||||
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
|
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||||
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:choice maxOccurs="unbounded">
|
||||||
|
<xsd:element name="metadata">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="assembly">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:attribute name="alias" type="xsd:string" />
|
||||||
|
<xsd:attribute name="name" type="xsd:string" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="data">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="resheader">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:choice>
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:schema>
|
||||||
|
<resheader name="resmimetype">
|
||||||
|
<value>text/microsoft-resx</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="version">
|
||||||
|
<value>2.0</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="reader">
|
||||||
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="writer">
|
||||||
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
</root>
|
||||||
@@ -1,11 +1,13 @@
|
|||||||
using Pilz.Plugins.Advanced;
|
using OwnChar.App.Desktop.Api;
|
||||||
|
using Pilz.Plugins.Advanced;
|
||||||
using Pilz.Plugins.Advanced.UI.Telerik;
|
using Pilz.Plugins.Advanced.UI.Telerik;
|
||||||
using System;
|
using System;
|
||||||
|
using System.Windows.Forms;
|
||||||
using Telerik.WinControls.UI;
|
using Telerik.WinControls.UI;
|
||||||
|
|
||||||
namespace OwnChar.App.Desktop.UI.Windows
|
namespace OwnChar.App.Desktop.UI.Windows
|
||||||
{
|
{
|
||||||
public partial class MainWindow : RadForm
|
public partial class MainWindow : RadTabbedForm
|
||||||
{
|
{
|
||||||
public MainWindowApi Api { get; }
|
public MainWindowApi Api { get; }
|
||||||
|
|
||||||
@@ -16,6 +18,21 @@ namespace OwnChar.App.Desktop.UI.Windows
|
|||||||
PluginFeatureController.Instance.Features.Get(FeatureCodes.MainTab).InsertItemsTo(radMenuItem2.Items, customClickHandler: MainTabItem_Clicked);
|
PluginFeatureController.Instance.Features.Get(FeatureCodes.MainTab).InsertItemsTo(radMenuItem2.Items, customClickHandler: MainTabItem_Clicked);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public class MainWindowApi(MainWindow mainWindow) : IMainWindowApi
|
||||||
|
{
|
||||||
|
public MainWindow MainWindow { get; } = mainWindow;
|
||||||
|
|
||||||
|
public void CloseTab(Control content)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void OpenTab(Control content)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void MainTabItem_Clicked(object? sender, EventArgs e)
|
private void MainTabItem_Clicked(object? sender, EventArgs e)
|
||||||
{
|
{
|
||||||
//if (sender is RadMenuItem item && item.Tag is PluginModule module)
|
//if (sender is RadMenuItem item && item.Tag is PluginModule module)
|
||||||
|
|||||||
@@ -1,23 +0,0 @@
|
|||||||
using OwnChar.App.Desktop.Api;
|
|
||||||
using System;
|
|
||||||
using System.Windows.Forms;
|
|
||||||
|
|
||||||
namespace OwnChar.App.Desktop.UI.Windows;
|
|
||||||
|
|
||||||
public partial class MainWindow
|
|
||||||
{
|
|
||||||
public class MainWindowApi(MainWindow mainWindow) : IMainWindowApi
|
|
||||||
{
|
|
||||||
public MainWindow MainWindow { get; } = mainWindow;
|
|
||||||
|
|
||||||
public void CloseTab(Control content)
|
|
||||||
{
|
|
||||||
throw new NotImplementedException();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void OpenTab(Control content)
|
|
||||||
{
|
|
||||||
throw new NotImplementedException();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user