finally more structure
This commit is contained in:
@@ -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