|
using System;
using System.Collections.Generic;
using System.Text;
using QiHe.CodeLib;
namespace QiHe.ProjectTool
{
public class Settings : AppSettings
{
public static Settings Default = WinApp.LoadConfig<Settings>();
public static void LoadToDefault(string file)
{
Settings settings = WinApp.LoadConfig<Settings>(file);
Default.ProjectPath = settings.ProjectPath;
Default.BackupPath = settings.BackupPath;
Default.CurrentProject = settings.CurrentProject;
Default.ArchiveFileNameTemplate = settings.ArchiveFileNameTemplate;
Default.CreateDiffBackup = settings.CreateDiffBackup;
Default.FrameworkPath = settings.FrameworkPath;
Default.Language = settings.Language;
Default.SyncSourceFolder = settings.SyncSourceFolder;
Default.SyncDestinationFolder = settings.SyncDestinationFolder;
Default.UpdateControls();
}
private string projectpath;
public string ProjectPath
{
get
{
return projectpath;
}
set
{
projectpath = value;
}
}
private string backuppath;
public string BackupPath
{
get
{
return backuppath;
}
set
{
backuppath = value;
}
}
private string currentproject;
public string CurrentProject
{
get
{
return currentproject;
}
set
{
currentproject = value;
}
}
private string archivefilenametemplate;
public string ArchiveFileNameTemplate
{
get
{
return archivefilenametemplate;
}
set
{
archivefilenametemplate = value;
}
}
private bool creatediffbackup;
public bool CreateDiffBackup
{
get
{
return creatediffbackup;
}
set
{
creatediffbackup = value;
}
}
private string frameworkpath;
public string FrameworkPath
{
get
{
return frameworkpath;
}
set
{
frameworkpath = value;
}
}
private string language;
public string Language
{
get
{
return language;
}
set
{
language = value;
}
}
private string syncsourcefolder;
public string SyncSourceFolder
{
get
{
return syncsourcefolder;
}
set
{
syncsourcefolder = value;
}
}
private string syncdestinationfolder;
public string SyncDestinationFolder
{
get
{
return syncdestinationfolder;
}
set
{
syncdestinationfolder = value;
}
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.