From ca47896204482bf4a6979e3838bf7f09f61cebeb Mon Sep 17 00:00:00 2001
From: giy <giy@omp-system.ru>
Date: Fri, 02 Sep 2022 14:16:56 +0300
Subject: [PATCH] Обновление до версии 2.9.0
---
QtVsTools.Core/ProFileOption.cs | 100 +++++++------------------------------------------
1 files changed, 15 insertions(+), 85 deletions(-)
diff --git a/QtVsTools.Core/ProFileOption.cs b/QtVsTools.Core/ProFileOption.cs
index 54468ef..8a5ad3d 100644
--- a/QtVsTools.Core/ProFileOption.cs
+++ b/QtVsTools.Core/ProFileOption.cs
@@ -34,95 +34,33 @@
{
public ProFileOption(string optname)
{
- name = optname;
- astype = AssignType.AT_PlusEquals;
- comment = null;
- shortComment = "Default";
- incComment = false;
- newOpt = " \\\r\n ";
- list = new List<string>();
+ Name = optname;
+ AssignSymbol = AssignType.AT_PlusEquals;
+ Comment = null;
+ ShortComment = "Default";
+ IncludeComment = false;
+ NewOption = " \\\r\n ";
+ List = new List<string>();
}
public override string ToString()
{
- return shortComment;
+ return ShortComment;
}
- public string Comment
- {
- get
- {
- return comment;
- }
- set
- {
- comment = value;
- }
- }
+ public string Comment { get; set; }
- public string ShortComment
- {
- get
- {
- return shortComment;
- }
- set
- {
- shortComment = value;
- }
- }
+ public string ShortComment { get; set; }
- public AssignType AssignSymbol
- {
- get
- {
- return astype;
- }
- set
- {
- astype = value;
- }
- }
+ public AssignType AssignSymbol { get; set; }
- public string NewOption
- {
- get
- {
- return newOpt;
- }
- set
- {
- newOpt = value;
- }
- }
+ public string NewOption { get; set; }
- public string Name
- {
- get
- {
- return name;
- }
- }
+ public string Name { get; }
- public List<string> List
- {
- get
- {
- return list;
- }
- }
+ public List<string> List { get; }
- public bool IncludeComment
- {
- get
- {
- return incComment;
- }
- set
- {
- incComment = value;
- }
- }
+ public bool IncludeComment { get; set; }
public enum AssignType
{
@@ -131,13 +69,5 @@
AT_MinusEquals = 3,
AT_Function = 4
}
-
- private AssignType astype;
- private string shortComment;
- private bool incComment;
- private string comment;
- private string newOpt;
- private string name;
- private List<string> list;
}
}
--
Gitblit v1.9.1