finally more structure
This commit is contained in:
@@ -1,13 +1,25 @@
|
||||
using Pilz.Plugins.Advanced.UI.Telerik;
|
||||
using OwnChar.App.Desktop.Api;
|
||||
using OwnChar.Model;
|
||||
using Pilz.UI.Telerik.Dialogs;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace OwnChar.App.Desktop.UI.MainTabs
|
||||
{
|
||||
public partial class TabCharView : PluginModuleUI
|
||||
public partial class TabCharView : UserControl, ILoadContent
|
||||
{
|
||||
public TabCharView()
|
||||
private readonly IMainWindowApi mainApi;
|
||||
private readonly Character character;
|
||||
|
||||
public TabCharView(IMainWindowApi mainApi, Character character)
|
||||
{
|
||||
ActionPanelVisible = false;
|
||||
this.mainApi = mainApi;
|
||||
this.character = character;
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
public void LoadContent()
|
||||
{
|
||||
// ...
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,22 +1,25 @@
|
||||
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 OwnChar.App.Desktop.Api;
|
||||
using OwnChar.Model;
|
||||
using Pilz.UI.Telerik.Dialogs;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace OwnChar.App.Desktop.UI.MainTabs
|
||||
{
|
||||
public partial class TabGroupView : PluginModuleUI
|
||||
public partial class TabGroupView : UserControl, ILoadContent
|
||||
{
|
||||
public TabGroupView()
|
||||
private readonly IMainWindowApi mainApi;
|
||||
private readonly Group group;
|
||||
|
||||
public TabGroupView(IMainWindowApi mainApi, Group group)
|
||||
{
|
||||
ActionPanelVisible = false;
|
||||
this.mainApi = mainApi;
|
||||
this.group = group;
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
public void LoadContent()
|
||||
{
|
||||
// ...
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,22 +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 OwnChar.App.Desktop.Api;
|
||||
using Pilz.UI.Telerik.Dialogs;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace OwnChar.App.Desktop.UI.MainTabs
|
||||
{
|
||||
public partial class TabGroupsView : PluginModuleUI
|
||||
public partial class TabGroupsView : UserControl, ILoadContent
|
||||
{
|
||||
public TabGroupsView()
|
||||
private readonly IMainWindowApi mainApi;
|
||||
|
||||
public TabGroupsView(IMainWindowApi mainApi)
|
||||
{
|
||||
ActionPanelVisible = false;
|
||||
this.mainApi = mainApi;
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
public void LoadContent()
|
||||
{
|
||||
// ...
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
37
OwnChar.App.Desktop/UI/MainTabs/TabSettingsView.Designer.cs
generated
Normal file
37
OwnChar.App.Desktop/UI/MainTabs/TabSettingsView.Designer.cs
generated
Normal file
@@ -0,0 +1,37 @@
|
||||
namespace OwnChar.App.Desktop.UI.MainTabs
|
||||
{
|
||||
partial class TabSettingsView
|
||||
{
|
||||
/// <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
|
||||
}
|
||||
}
|
||||
18
OwnChar.App.Desktop/UI/MainTabs/TabSettingsView.cs
Normal file
18
OwnChar.App.Desktop/UI/MainTabs/TabSettingsView.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using Pilz.UI.Telerik.Dialogs;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace OwnChar.App.Desktop.UI.MainTabs
|
||||
{
|
||||
public partial class TabSettingsView : UserControl, ILoadContent
|
||||
{
|
||||
public TabSettingsView()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
public void LoadContent()
|
||||
{
|
||||
// ...
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,22 +1,35 @@
|
||||
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 OwnChar.App.Desktop.Api;
|
||||
using OwnChar.Model;
|
||||
using Pilz.UI.Telerik.Dialogs;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace OwnChar.App.Desktop.UI.MainTabs
|
||||
{
|
||||
public partial class TabUserView : PluginModuleUI
|
||||
public partial class TabUserView : UserControl, ILoadContent
|
||||
{
|
||||
public TabUserView()
|
||||
private readonly IMainWindowApi mainApi;
|
||||
private readonly UserAccount? account;
|
||||
private readonly UserProfile? profile;
|
||||
|
||||
private TabUserView(IMainWindowApi mainApi, UserAccount? account, UserProfile? profile)
|
||||
{
|
||||
ActionPanelVisible = false;
|
||||
this.mainApi = mainApi;
|
||||
this.account = account;
|
||||
this.profile = profile;
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
public TabUserView(IMainWindowApi mainApi, UserAccount? account) : this(mainApi, account, mainApi.Manager.Users.GetUserProfile(account))
|
||||
{
|
||||
}
|
||||
|
||||
public TabUserView(IMainWindowApi mainApi, UserProfile? profile) : this(mainApi, null, profile)
|
||||
{
|
||||
}
|
||||
|
||||
public void LoadContent()
|
||||
{
|
||||
// ...
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user