Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
47fb4f8c27 | ||
|
|
f2706b2b29 | ||
|
|
ab40973980 | ||
|
|
f8f28105d9 | ||
|
|
f310d2a1df | ||
|
|
bf047a58e3 | ||
|
|
22d8a9ff2a | ||
|
|
de32d997fb | ||
|
|
6ac8ec0cfa | ||
|
|
c215d27841 | ||
|
|
2e05bde250 | ||
|
|
f8cf31c941 | ||
|
|
73ea61487e | ||
|
|
b3b9ceb283 | ||
|
|
45f40263ad | ||
|
|
d84add4871 | ||
|
|
884a59b206 | ||
|
|
6f8cebc25d | ||
|
|
185b4bc00c | ||
|
|
475a05c36a | ||
|
|
732811c928 | ||
|
|
3b9ba9571d | ||
|
|
5b9dcfde02 |
+4
-5
@@ -38,7 +38,7 @@ namespace BlubbFish.Utils
|
||||
public ArgTouple(String type)
|
||||
{
|
||||
this.Type = type;
|
||||
this.Data = "";
|
||||
this.Data = null;
|
||||
}
|
||||
public String Type { get; private set; }
|
||||
public String Data { get; private set; }
|
||||
@@ -100,7 +100,8 @@ namespace BlubbFish.Utils
|
||||
if (this.args.Length > i + 1) {
|
||||
arg.SetData(this.args[++i]);
|
||||
} else {
|
||||
throw new ArgumentException();
|
||||
Console.WriteLine(this.GetUsageList(""));
|
||||
throw new ArgumentException("Argument: "+this.args[i]+" missing second argument.");
|
||||
}
|
||||
}
|
||||
this.argList.Add(arg);
|
||||
@@ -142,11 +143,9 @@ namespace BlubbFish.Utils
|
||||
foreach (ArgTouple t in this.argList) {
|
||||
if (t.Type == name && t.Data != null) {
|
||||
return t.Data;
|
||||
} else {
|
||||
throw new ArgumentNullException();
|
||||
}
|
||||
}
|
||||
return null;
|
||||
throw new ArgumentNullException();
|
||||
}
|
||||
|
||||
public Boolean HasAllRequiredArguments()
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@ namespace BlubbFish.Utils {
|
||||
public class InIReader : IDisposable
|
||||
{
|
||||
private Dictionary<String, Dictionary<String, String>> inifile;
|
||||
private FileSystemWatcher k;
|
||||
private readonly FileSystemWatcher k;
|
||||
private readonly String filename;
|
||||
private static List<String> search_path = new List<String>() {
|
||||
Directory.GetCurrentDirectory()
|
||||
|
||||
+2
-1
@@ -9,7 +9,7 @@ namespace BlubbFish.Utils
|
||||
public abstract class OwnModel<T> where T : class
|
||||
{
|
||||
private static readonly Lazy<T> _instance = new Lazy<T>(() => CreateInstanceOfT());
|
||||
private List<OwnView> observer = new List<OwnView>();
|
||||
private readonly List<OwnView> observer = new List<OwnView>();
|
||||
public static T Instance
|
||||
{
|
||||
get {
|
||||
@@ -35,5 +35,6 @@ namespace BlubbFish.Utils
|
||||
this.observer.ForEach(delegate (OwnView view) { view.Update(); });
|
||||
}
|
||||
abstract protected void Init();
|
||||
abstract public void Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -64,6 +64,8 @@ namespace BlubbFish.Utils {
|
||||
this.fw.Close();
|
||||
if(new FileInfo(this.loggerfile).Length > 0) {
|
||||
File.Move(this.loggerfile, file);
|
||||
} else {
|
||||
File.Delete(this.loggerfile);
|
||||
}
|
||||
this.loggerfile = file;
|
||||
this.fw = new FileWriter(this.loggerfile);
|
||||
|
||||
@@ -10,7 +10,7 @@ using System.Runtime.InteropServices;
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("Utils")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2014 - 15.05.2018")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2014 - 02.10.2018")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
||||
// Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern
|
||||
// übernehmen, indem Sie "*" eingeben:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.1.0")]
|
||||
[assembly: AssemblyFileVersion("1.1.0")]
|
||||
[assembly: AssemblyVersion("1.1.3")]
|
||||
[assembly: AssemblyFileVersion("1.1.3")]
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user