This commit is contained in:
JustArchi
2016-04-26 22:05:58 +02:00
parent 344c2ad23d
commit 8118fe0690
8 changed files with 26 additions and 26 deletions

View File

@@ -28,7 +28,7 @@ using System.Collections.Generic;
using System.IO;
namespace ConfigGenerator {
internal class ASFConfig {
internal abstract class ASFConfig {
internal static readonly HashSet<ASFConfig> ASFConfigs = new HashSet<ASFConfig>();
internal string FilePath { get; set; }

View File

@@ -39,8 +39,8 @@ namespace ConfigGenerator {
[JsonProperty]
public string SteamLogin { get; set; } = null;
[PasswordPropertyText(true)]
[JsonProperty]
[PasswordPropertyText(true)]
public string SteamPassword { get; set; } = null;
[JsonProperty]

View File

@@ -26,7 +26,7 @@ using System.IO;
using System.Windows.Forms;
namespace ConfigGenerator {
internal class ConfigPage : TabPage {
internal sealed class ConfigPage : TabPage {
internal readonly ASFConfig ASFConfig;
internal ConfigPage(ASFConfig config) {

View File

@@ -27,8 +27,8 @@ using System.Drawing;
using System.Windows.Forms;
namespace ConfigGenerator {
class DialogBox {
public static DialogResult InputBox(string title, string promptText, out string value) {
internal sealed class DialogBox {
internal static DialogResult InputBox(string title, string promptText, out string value) {
if (string.IsNullOrEmpty(title) || string.IsNullOrEmpty(promptText)) {
value = null;
return DialogResult.Abort;
@@ -75,7 +75,7 @@ namespace ConfigGenerator {
return dialogResult;
}
public static DialogResult YesNoBox(string title, string promptText) {
internal static DialogResult YesNoBox(string title, string promptText) {
if (string.IsNullOrEmpty(title) || string.IsNullOrEmpty(promptText)) {
return DialogResult.Abort;
}

View File

@@ -30,7 +30,7 @@ using System.Text.RegularExpressions;
using System.Windows.Forms;
namespace ConfigGenerator {
public partial class MainForm : Form {
internal sealed partial class MainForm : Form {
private const byte ReservedTabs = 3;
private readonly TabPage NewTab = new TabPage { Text = "+" };
@@ -40,7 +40,7 @@ namespace ConfigGenerator {
private ConfigPage ASFTab;
private TabPage OldTab;
public MainForm() {
internal MainForm() {
InitializeComponent();
}