Skip to content

Commit 3af62f7

Browse files
committed
Changed coding style to TAB based indentation
1 parent c928a79 commit 3af62f7

File tree

101 files changed

+11049
-10911
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+11049
-10911
lines changed
Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,52 @@
11
namespace ServiceLocator
22
{
3-
using System;
4-
using System.Collections.Generic;
3+
using System;
4+
using System.Collections.Generic;
55

6-
/// <summary>
7-
/// Source: http://www.codeproject.com/Articles/70223/Using-a-Service-Locator-to-Work-with-MessageBoxes
8-
/// </summary>
9-
public class ServiceContainer
10-
{
11-
#region fields
12-
public static readonly ServiceContainer Instance = new ServiceContainer();
6+
/// <summary>
7+
/// Source: http://www.codeproject.com/Articles/70223/Using-a-Service-Locator-to-Work-with-MessageBoxes
8+
/// </summary>
9+
public class ServiceContainer
10+
{
11+
#region fields
12+
public static readonly ServiceContainer Instance = new ServiceContainer();
1313

14-
readonly Dictionary<Type, object> _serviceMap;
15-
readonly object _serviceMapLock;
16-
#endregion fields
14+
readonly Dictionary<Type, object> _serviceMap;
15+
readonly object _serviceMapLock;
16+
#endregion fields
1717

18-
#region constructors
19-
/// <summary>
20-
/// Class Constructor
21-
/// </summary>
22-
private ServiceContainer()
23-
{
24-
_serviceMap = new Dictionary<Type, object>();
25-
_serviceMapLock = new object();
26-
}
27-
#endregion constructors
18+
#region constructors
19+
/// <summary>
20+
/// Class Constructor
21+
/// </summary>
22+
private ServiceContainer()
23+
{
24+
_serviceMap = new Dictionary<Type, object>();
25+
_serviceMapLock = new object();
26+
}
27+
#endregion constructors
2828

29-
#region methods
30-
public void AddService<TServiceContract>(TServiceContract implementation)
31-
where TServiceContract : class
32-
{
33-
lock (_serviceMapLock)
34-
{
35-
_serviceMap[typeof(TServiceContract)] = implementation;
36-
}
37-
}
29+
#region methods
30+
public void AddService<TServiceContract>(TServiceContract implementation)
31+
where TServiceContract : class
32+
{
33+
lock (_serviceMapLock)
34+
{
35+
_serviceMap[typeof(TServiceContract)] = implementation;
36+
}
37+
}
3838

39-
public TServiceContract GetService<TServiceContract>()
40-
where TServiceContract : class
41-
{
42-
object service;
43-
lock (_serviceMapLock)
44-
{
45-
_serviceMap.TryGetValue(typeof(TServiceContract), out service);
46-
}
39+
public TServiceContract GetService<TServiceContract>()
40+
where TServiceContract : class
41+
{
42+
object service;
43+
lock (_serviceMapLock)
44+
{
45+
_serviceMap.TryGetValue(typeof(TServiceContract), out service);
46+
}
4747

48-
return service as TServiceContract;
49-
}
50-
#endregion methods
51-
}
48+
return service as TServiceContract;
49+
}
50+
#endregion methods
51+
}
5252
}
Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
11
namespace Settings.Interfaces
22
{
3-
using Settings.ProgramSettings;
4-
using System.Collections.Generic;
3+
using Settings.ProgramSettings;
4+
using System.Collections.Generic;
55

6-
public interface IOptions
7-
{
8-
#region properties
9-
bool IsDirty { get; set; }
10-
string LanguageSelected { get; set; }
11-
bool ReloadOpenFilesOnAppStart { get; set; }
12-
string SourceFilePath { get; set; }
6+
public interface IOptions
7+
{
8+
#region properties
9+
bool IsDirty { get; set; }
10+
string LanguageSelected { get; set; }
11+
bool ReloadOpenFilesOnAppStart { get; set; }
12+
string SourceFilePath { get; set; }
1313

14-
string DefaultSourceLanguage { get; set; }
15-
string DefaultTargetLanguage { get; set; }
14+
string DefaultSourceLanguage { get; set; }
15+
string DefaultTargetLanguage { get; set; }
1616

17-
string DefaultDefaultSourceLanguage { get; }
18-
string DefaultDefaultTargetLanguage { get; }
17+
string DefaultDefaultSourceLanguage { get; }
18+
string DefaultDefaultTargetLanguage { get; }
1919

20-
int DefaultIconSize { get; }
21-
int IconSizeMin { get; }
22-
int IconSizeMax { get; }
20+
int DefaultIconSize { get; }
21+
int IconSizeMin { get; }
22+
int IconSizeMax { get; }
2323

24-
int DefaultFontSize { get; }
25-
int FontSizeMin { get; }
26-
int FontSizeMax { get; }
27-
#endregion properties
24+
int DefaultFontSize { get; }
25+
int FontSizeMin { get; }
26+
int FontSizeMax { get; }
27+
#endregion properties
2828

29-
#region methods
30-
/// <summary>
31-
/// Reset the dirty flag (e.g. after saving program options when they where edit).
32-
/// </summary>
33-
/// <param name="flag"></param>
34-
void SetDirtyFlag(bool flag);
29+
#region methods
30+
/// <summary>
31+
/// Reset the dirty flag (e.g. after saving program options when they where edit).
32+
/// </summary>
33+
/// <param name="flag"></param>
34+
void SetDirtyFlag(bool flag);
3535

36-
void SetIconSize(int size);
37-
void SetFontSize(int size);
38-
#endregion methods
39-
}
36+
void SetIconSize(int size);
37+
void SetFontSize(int size);
38+
#endregion methods
39+
}
4040
}
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
namespace Settings.Interfaces
22
{
3-
using SettingsModel.Interfaces;
3+
using SettingsModel.Interfaces;
44

5-
public interface IOptionsPanel
6-
{
7-
IEngine Options { get; }
8-
}
5+
public interface IOptionsPanel
6+
{
7+
IEngine Options { get; }
8+
}
99
}
Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,50 @@
11
namespace Settings.Interfaces
22
{
3-
using Settings.UserProfile;
4-
using SettingsModel.Models;
5-
using System;
6-
using System.Collections.Generic;
7-
8-
public interface IProfile
9-
{
10-
#region properties
11-
string GetLastActivePath();
12-
string LastActiveSolution { get; set; }
13-
14-
15-
string LastActiveTargetFile { get; set; }
16-
17-
List<FileReference> LastActiveSourceFiles { get; set; }
18-
19-
/// <summary>
20-
/// Gets the key name of the MainWindow item in the collection.
21-
/// Ths name can be used as key in the WindowPosSz property
22-
/// to read and write MainWindow position and size information.
23-
/// </summary>
24-
string MainWindowName { get; }
25-
26-
/// <summary>
27-
/// Gets a collection of window position and size items.
28-
/// </summary>
29-
SerializableDictionary<string, ViewPosSizeModel> WindowPosSz { get; }
30-
#endregion properties
31-
32-
#region methods
33-
/// <summary>
34-
/// Checks the MainWindow for visibility when re-starting application
35-
/// (with different screen configuration).
36-
/// </summary>
37-
/// <param name="SystemParameters_VirtualScreenLeft"></param>
38-
/// <param name="SystemParameters_VirtualScreenTop"></param>
39-
void CheckSettingsOnLoad(double SystemParameters_VirtualScreenLeft, double SystemParameters_VirtualScreenTop);
40-
41-
/// <summary>
42-
/// Updates or inserts the requested window pos size item in the collection.
43-
/// </summary>
44-
/// <param name="windowName"></param>
45-
/// <param name="model"></param>
46-
/// <returns></returns>
47-
void UpdateInsertWindowPosSize(string windowName, ViewPosSizeModel model);
48-
#endregion methods
49-
}
3+
using Settings.UserProfile;
4+
using SettingsModel.Models;
5+
using System;
6+
using System.Collections.Generic;
7+
8+
public interface IProfile
9+
{
10+
#region properties
11+
string GetLastActivePath();
12+
string LastActiveSolution { get; set; }
13+
14+
15+
string LastActiveTargetFile { get; set; }
16+
17+
List<FileReference> LastActiveSourceFiles { get; set; }
18+
19+
/// <summary>
20+
/// Gets the key name of the MainWindow item in the collection.
21+
/// Ths name can be used as key in the WindowPosSz property
22+
/// to read and write MainWindow position and size information.
23+
/// </summary>
24+
string MainWindowName { get; }
25+
26+
/// <summary>
27+
/// Gets a collection of window position and size items.
28+
/// </summary>
29+
SerializableDictionary<string, ViewPosSizeModel> WindowPosSz { get; }
30+
#endregion properties
31+
32+
#region methods
33+
/// <summary>
34+
/// Checks the MainWindow for visibility when re-starting application
35+
/// (with different screen configuration).
36+
/// </summary>
37+
/// <param name="SystemParameters_VirtualScreenLeft"></param>
38+
/// <param name="SystemParameters_VirtualScreenTop"></param>
39+
void CheckSettingsOnLoad(double SystemParameters_VirtualScreenLeft, double SystemParameters_VirtualScreenTop);
40+
41+
/// <summary>
42+
/// Updates or inserts the requested window pos size item in the collection.
43+
/// </summary>
44+
/// <param name="windowName"></param>
45+
/// <param name="model"></param>
46+
/// <returns></returns>
47+
void UpdateInsertWindowPosSize(string windowName, ViewPosSizeModel model);
48+
#endregion methods
49+
}
5050
}
Lines changed: 52 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,55 @@
11
namespace Settings.Interfaces
22
{
3-
using Settings.ProgramSettings;
4-
using MLib.Interfaces;
5-
using System.Collections.Generic;
6-
using System.Xml.Serialization;
7-
8-
public interface ISettingsManager : IOptionsPanel
9-
{
10-
void CheckSettingsOnLoad(double SystemParameters_VirtualScreenLeft, double SystemParameters_VirtualScreenTop);
11-
12-
////void LoadOptions(string settingsFileName);
13-
void LoadSessionData(string sessionDataFileName);
14-
15-
////bool SaveOptions(string settingsFileName, Settings.Interfaces.IOptions optionsModel);
16-
bool SaveSessionData(string sessionDataFileName, Settings.Interfaces.IProfile model);
17-
18-
/// <summary>
19-
/// Get a list of all supported languages in Edi.
20-
/// </summary>
21-
/// <returns></returns>
22-
IEnumerable<LanguageCollection> GetSupportedLanguages();
23-
24-
#region properties
25-
Settings.Interfaces.IProfile SessionData { get; }
26-
27-
int IconSizeMin { get; }
28-
int IconSizeMax { get; }
29-
30-
int FontSizeMin { get; }
31-
int FontSizeMax { get; }
32-
33-
/// <summary>
34-
/// Gets the default icon size for the application.
35-
/// </summary>
36-
int DefaultIconSize { get; }
37-
38-
/// <summary>
39-
/// Gets the default font size for the application.
40-
/// </summary>
41-
int DefaultFontSize { get; }
42-
43-
/// <summary>
44-
/// Gets the default fixed font size for the application.
45-
/// </summary>
46-
int DefaultFixedFontSize { get; }
47-
48-
/// <summary>
49-
/// Gets the internal name and Uri source for all available themes.
50-
/// </summary>
51-
[XmlIgnore]
52-
IThemeInfos Themes { get; }
53-
#endregion properties
54-
}
3+
using Settings.ProgramSettings;
4+
using MLib.Interfaces;
5+
using System.Collections.Generic;
6+
using System.Xml.Serialization;
7+
8+
public interface ISettingsManager : IOptionsPanel
9+
{
10+
void CheckSettingsOnLoad(double SystemParameters_VirtualScreenLeft, double SystemParameters_VirtualScreenTop);
11+
12+
////void LoadOptions(string settingsFileName);
13+
void LoadSessionData(string sessionDataFileName);
14+
15+
////bool SaveOptions(string settingsFileName, Settings.Interfaces.IOptions optionsModel);
16+
bool SaveSessionData(string sessionDataFileName, Settings.Interfaces.IProfile model);
17+
18+
/// <summary>
19+
/// Get a list of all supported languages in Edi.
20+
/// </summary>
21+
/// <returns></returns>
22+
IEnumerable<LanguageCollection> GetSupportedLanguages();
23+
24+
#region properties
25+
Settings.Interfaces.IProfile SessionData { get; }
26+
27+
int IconSizeMin { get; }
28+
int IconSizeMax { get; }
29+
30+
int FontSizeMin { get; }
31+
int FontSizeMax { get; }
32+
33+
/// <summary>
34+
/// Gets the default icon size for the application.
35+
/// </summary>
36+
int DefaultIconSize { get; }
37+
38+
/// <summary>
39+
/// Gets the default font size for the application.
40+
/// </summary>
41+
int DefaultFontSize { get; }
42+
43+
/// <summary>
44+
/// Gets the default fixed font size for the application.
45+
/// </summary>
46+
int DefaultFixedFontSize { get; }
47+
48+
/// <summary>
49+
/// Gets the internal name and Uri source for all available themes.
50+
/// </summary>
51+
[XmlIgnore]
52+
IThemeInfos Themes { get; }
53+
#endregion properties
54+
}
5555
}

0 commit comments

Comments
 (0)