mirror of
https://github.com/netchx/netch.git
synced 2026-03-18 18:13:21 +08:00
1. It will enable the UI sooner after you click the "Stop" button, allowing you to switch mode/server much sooner. 2. Adds a Profile UI which allows you to Ctrl+Click to save a profile and Click to switch to a profile.
31 lines
567 B
C#
31 lines
567 B
C#
using System;
|
|
|
|
namespace Netch.Models
|
|
{
|
|
public class Profile
|
|
{
|
|
public String ServerRemark;
|
|
public String ModeRemark;
|
|
public String ProfileName;
|
|
|
|
public bool IsDummy = true;
|
|
|
|
public Profile(Server server, Mode mode, String name)
|
|
{
|
|
ServerRemark = server.Remark;
|
|
ModeRemark = mode.Remark;
|
|
ProfileName = name;
|
|
IsDummy = false;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Return a dummy one.
|
|
/// </summary>
|
|
public Profile()
|
|
{
|
|
}
|
|
|
|
|
|
}
|
|
}
|