some work on pages

This commit is contained in:
Zoe Fenris
2024-06-10 20:02:42 +02:00
parent 03644577a1
commit 965e4de399
22 changed files with 548 additions and 165 deletions

View File

@@ -11,7 +11,7 @@ namespace OwnChar.App.Desktop.Features.MainWindow.QuickAction
protected override object? ExecuteFunction(PluginFunctionParameter? @params)
{
if (@params is MainWindowParams p)
p.Api.OpenTab(new TabUserView(p.Api, p.Api.Manager?.CurrentUser));
p.Api.OpenTab(new TabUserView(p.Api, p.Api.Manager?.CurrentUser), "todo");
return null;
}
}

View File

@@ -11,7 +11,7 @@ namespace OwnChar.App.Desktop.Features.MainWindow.QuickAction
protected override object? ExecuteFunction(PluginFunctionParameter? @params)
{
if (@params is MainWindowParams p)
p.Api.OpenTab(new TabSettingsView());
p.Api.OpenTab(new TabSettingsView(), "todo");
return null;
}
}

View File

@@ -0,0 +1,90 @@
//------------------------------------------------------------------------------
// <auto-generated>
// Dieser Code wurde von einem Tool generiert.
// Laufzeitversion:4.0.30319.42000
//
// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
// der Code erneut generiert wird.
// </auto-generated>
//------------------------------------------------------------------------------
namespace OwnChar.App.Desktop.LangRes {
using System;
/// <summary>
/// Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw.
/// </summary>
// 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 LangResCharListControl {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal LangResCharListControl() {
}
/// <summary>
/// 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 {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("OwnChar.App.Desktop.LangRes.LangResCharListControl", typeof(LangResCharListControl).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Ü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 {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
/// <summary>
/// Sucht eine lokalisierte Zeichenfolge, die Group ähnelt.
/// </summary>
internal static string Column_CharGroup {
get {
return ResourceManager.GetString("Column_CharGroup", resourceCulture);
}
}
/// <summary>
/// Sucht eine lokalisierte Zeichenfolge, die Name ähnelt.
/// </summary>
internal static string Column_CharName {
get {
return ResourceManager.GetString("Column_CharName", resourceCulture);
}
}
/// <summary>
/// Sucht eine lokalisierte Zeichenfolge, die Owner ähnelt.
/// </summary>
internal static string Column_CharOwner {
get {
return ResourceManager.GetString("Column_CharOwner", resourceCulture);
}
}
}
}

View File

@@ -117,4 +117,13 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="Column_CharGroup" xml:space="preserve">
<value>Group</value>
</data>
<data name="Column_CharName" xml:space="preserve">
<value>Name</value>
</data>
<data name="Column_CharOwner" xml:space="preserve">
<value>Owner</value>
</data>
</root>

View File

@@ -30,6 +30,21 @@
<Folder Include="Features\MainWindow\MainTabs\" />
</ItemGroup>
<ItemGroup>
<Compile Update="LangRes\LangResCharListControl.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>LangResCharListControl.resx</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="LangRes\LangResCharListControl.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>LangResCharListControl.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>
<ProjectExtensions><VisualStudio><UserProperties ShouldAddDPIScalingManifest="" /></VisualStudio></ProjectExtensions>

View File

@@ -0,0 +1,58 @@
namespace OwnChar.App.Desktop.UI.MainTabs.Controls
{
partial class CharacterListControl
{
/// <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()
{
radListView_CharList = new Telerik.WinControls.UI.RadListView();
((System.ComponentModel.ISupportInitialize)radListView_CharList).BeginInit();
SuspendLayout();
//
// radListView_CharList
//
radListView_CharList.Dock = System.Windows.Forms.DockStyle.Fill;
radListView_CharList.Location = new System.Drawing.Point(0, 0);
radListView_CharList.Name = "radListView_CharList";
radListView_CharList.Size = new System.Drawing.Size(500, 500);
radListView_CharList.TabIndex = 0;
//
// CharacterListControl
//
AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
Controls.Add(radListView_CharList);
Name = "CharacterListControl";
Size = new System.Drawing.Size(500, 500);
((System.ComponentModel.ISupportInitialize)radListView_CharList).EndInit();
ResumeLayout(false);
}
#endregion
private Telerik.WinControls.UI.RadListView radListView_CharList;
}
}

View File

@@ -0,0 +1,95 @@
using OwnChar.App.Desktop.Api;
using OwnChar.App.Desktop.UI.Windows;
using OwnChar.Model;
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 Telerik.WinControls.UI;
namespace OwnChar.App.Desktop.UI.MainTabs.Controls
{
public partial class CharacterListControl : UserControl
{
private IMainWindowApi? mainApi;
private UserProfile? profile;
private Group? group;
public CharacterListControl()
{
InitializeComponent();
}
public void LoadContent(IMainWindowApi mainApi, UserProfile? profile)
{
LoadContent(mainApi, profile, null);
}
public void LoadContent(IMainWindowApi mainApi, Group? group)
{
LoadContent(mainApi, null, group);
}
private void LoadContent(IMainWindowApi mainApi, UserProfile? profile, Group? group)
{
this.mainApi = mainApi;
this.profile = profile;
this.group = group;
PrepareList();
LoadList();
}
// Laden aller -eigenen- Charaktere
// Spalte zum Anzeigen der Gruppen-Zugehörigkeit
// Hinzufügen und Löschen von Charakteren
private void PrepareList()
{
radListView_CharList.BeginUpdate();
radListView_CharList.Columns.Clear();
radListView_CharList.Columns.Add(LangRes.LangResCharListControl.Column_CharName);
if (profile != null)
radListView_CharList.Columns.Add(LangRes.LangResCharListControl.Column_CharGroup);
else if (group != null)
radListView_CharList.Columns.Add(LangRes.LangResCharListControl.Column_CharOwner);
radListView_CharList.EndUpdate();
}
private void LoadList()
{
radListView_CharList.BeginUpdate();
radListView_CharList.Items.Clear();
if (profile != null && mainApi?.Manager?.Characters.GetCharacters(profile) is IEnumerable<Character> characters)
{
foreach (Character character in characters)
{
AddCharToList(character);
}
}
radListView_CharList.EndUpdate();
}
private void AddCharToList(Character character)
{
var newItem = new ListViewDataItem();
UpdateCharListViewItem(newItem, character);
newItem.Value = character;
}
private void UpdateCharListViewItem(ListViewDataItem listItem, Character character)
{
listItem[0] = character.Name;
}
}
}

View File

@@ -1,37 +0,0 @@
namespace OwnChar.App.Desktop.UI.MainTabs.Controls
{
partial class CharacterViewControl
{
/// <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
}
}

View File

@@ -1,20 +0,0 @@
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.Controls
{
public partial class CharacterViewControl : UserControl
{
public CharacterViewControl()
{
InitializeComponent();
}
}
}

View File

@@ -0,0 +1,60 @@
namespace OwnChar.App.Desktop.UI.MainTabs.Controls
{
partial class GroupListControl
{
/// <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()
{
radPageView_groupView = new Telerik.WinControls.UI.RadPageView();
((System.ComponentModel.ISupportInitialize)radPageView_groupView).BeginInit();
SuspendLayout();
//
// radPageView_groupView
//
radPageView_groupView.Dock = System.Windows.Forms.DockStyle.Fill;
radPageView_groupView.Location = new System.Drawing.Point(0, 0);
radPageView_groupView.Name = "radPageView_groupView";
radPageView_groupView.Size = new System.Drawing.Size(500, 500);
radPageView_groupView.TabIndex = 0;
radPageView_groupView.ViewMode = Telerik.WinControls.UI.PageViewMode.NavigationView;
((Telerik.WinControls.UI.RadPageViewNavigationViewElement)radPageView_groupView.GetChildAt(0)).ExpandedPaneWidth = 175;
//
// GroupViewControl
//
AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
Controls.Add(radPageView_groupView);
Name = "GroupViewControl";
Size = new System.Drawing.Size(500, 500);
((System.ComponentModel.ISupportInitialize)radPageView_groupView).EndInit();
ResumeLayout(false);
}
#endregion
private Telerik.WinControls.UI.RadPageView radPageView_groupView;
}
}

View File

@@ -7,14 +7,20 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Telerik.WinControls.UI;
using Telerik.WinControls.UI.Diagrams.Primitives;
namespace OwnChar.App.Desktop.UI.MainTabs.Controls
{
public partial class MemberViewControl : UserControl
public partial class GroupListControl : UserControl
{
public MemberViewControl()
public GroupListControl()
{
InitializeComponent();
}
// Auflistung der Gruppen
// Hinzufügen
// Löschen + Umbenennen (Wenn Admin/Mod)
}
}

View File

@@ -1,37 +0,0 @@
namespace OwnChar.App.Desktop.UI.MainTabs.Controls
{
partial class GroupViewControl
{
/// <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
}
}

View File

@@ -1,6 +1,6 @@
namespace OwnChar.App.Desktop.UI.MainTabs.Controls
{
partial class MemberViewControl
partial class MemberListControl
{
/// <summary>
/// Erforderliche Designervariable.

View File

@@ -10,11 +10,14 @@ using System.Windows.Forms;
namespace OwnChar.App.Desktop.UI.MainTabs.Controls
{
public partial class GroupViewControl : UserControl
public partial class MemberListControl : UserControl
{
public GroupViewControl()
public MemberListControl()
{
InitializeComponent();
}
// Auflisten von Nutzern
// -> z.B. Freunden oder Mitgliedern einer Gruppe
}
}

View 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>

View File

@@ -28,8 +28,15 @@
/// </summary>
private void InitializeComponent()
{
components = new System.ComponentModel.Container();
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
SuspendLayout();
//
// TabCharView
//
AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
Name = "TabCharView";
Size = new System.Drawing.Size(500, 500);
ResumeLayout(false);
}
#endregion

View File

@@ -1,4 +1,5 @@
using OwnChar.App.Desktop.Api;
using OwnChar.App.Desktop.UI.MainTabs.Controls;
using OwnChar.Model;
using Pilz.UI.Telerik.Dialogs;
using System.Windows.Forms;
@@ -19,7 +20,7 @@ namespace OwnChar.App.Desktop.UI.MainTabs
public void LoadContent()
{
// ...
}
}
}

View File

@@ -30,10 +30,12 @@
{
radPageView1 = new Telerik.WinControls.UI.RadPageView();
radPageViewPage1 = new Telerik.WinControls.UI.RadPageViewPage();
characterListControl1 = new Controls.CharacterListControl();
radPageViewPage2 = new Telerik.WinControls.UI.RadPageViewPage();
radPageViewPage3 = new Telerik.WinControls.UI.RadPageViewPage();
((System.ComponentModel.ISupportInitialize)radPageView1).BeginInit();
radPageView1.SuspendLayout();
radPageViewPage1.SuspendLayout();
SuspendLayout();
//
// radPageView1
@@ -52,26 +54,35 @@
//
// radPageViewPage1
//
radPageViewPage1.ItemSize = new System.Drawing.SizeF(107F, 30F);
radPageViewPage1.Location = new System.Drawing.Point(151, 30);
radPageViewPage1.Controls.Add(characterListControl1);
radPageViewPage1.ItemSize = new System.Drawing.SizeF(113F, 29F);
radPageViewPage1.Location = new System.Drawing.Point(152, 38);
radPageViewPage1.Name = "radPageViewPage1";
radPageViewPage1.Size = new System.Drawing.Size(348, 469);
radPageViewPage1.Size = new System.Drawing.Size(346, 460);
radPageViewPage1.Text = "Meine Charaktere";
//
// characterListControl1
//
characterListControl1.Dock = System.Windows.Forms.DockStyle.Fill;
characterListControl1.Location = new System.Drawing.Point(0, 0);
characterListControl1.Name = "characterListControl1";
characterListControl1.Size = new System.Drawing.Size(346, 460);
characterListControl1.TabIndex = 0;
//
// radPageViewPage2
//
radPageViewPage2.ItemSize = new System.Drawing.SizeF(107F, 30F);
radPageViewPage2.Location = new System.Drawing.Point(151, 30);
radPageViewPage2.ItemSize = new System.Drawing.SizeF(113F, 29F);
radPageViewPage2.Location = new System.Drawing.Point(152, 38);
radPageViewPage2.Name = "radPageViewPage2";
radPageViewPage2.Size = new System.Drawing.Size(348, 469);
radPageViewPage2.Size = new System.Drawing.Size(346, 460);
radPageViewPage2.Text = "Meine Gruppen";
//
// radPageViewPage3
//
radPageViewPage3.ItemSize = new System.Drawing.SizeF(107F, 30F);
radPageViewPage3.Location = new System.Drawing.Point(151, 30);
radPageViewPage3.ItemSize = new System.Drawing.SizeF(113F, 29F);
radPageViewPage3.Location = new System.Drawing.Point(152, 38);
radPageViewPage3.Name = "radPageViewPage3";
radPageViewPage3.Size = new System.Drawing.Size(348, 469);
radPageViewPage3.Size = new System.Drawing.Size(346, 460);
radPageViewPage3.Text = "Meine Freunde";
//
// TabUserView
@@ -83,6 +94,7 @@
Size = new System.Drawing.Size(500, 500);
((System.ComponentModel.ISupportInitialize)radPageView1).EndInit();
radPageView1.ResumeLayout(false);
radPageViewPage1.ResumeLayout(false);
ResumeLayout(false);
}
@@ -92,5 +104,6 @@
private Telerik.WinControls.UI.RadPageViewPage radPageViewPage1;
private Telerik.WinControls.UI.RadPageViewPage radPageViewPage2;
private Telerik.WinControls.UI.RadPageViewPage radPageViewPage3;
private Controls.CharacterListControl characterListControl1;
}
}

View File

@@ -19,7 +19,7 @@ namespace OwnChar.App.Desktop.UI.MainTabs
InitializeComponent();
}
public TabUserView(IMainWindowApi mainApi, UserAccount? account) : this(mainApi, account, mainApi.Manager.Users.GetUserProfile(account))
public TabUserView(IMainWindowApi mainApi, UserAccount? account) : this(mainApi, account, mainApi.Manager!.Users.GetOwnUserProfile())
{
}
@@ -29,7 +29,7 @@ namespace OwnChar.App.Desktop.UI.MainTabs
public void LoadContent()
{
// ...
characterListControl1.LoadContent(mainApi, profile);
}
}
}