|
From: <che...@us...> - 2009-06-16 17:45:01
|
Revision: 2929
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=2929&view=rev
Author: chef_koch
Date: 2009-06-16 17:44:55 +0000 (Tue, 16 Jun 2009)
Log Message:
-----------
more code cleaning
Modified Paths:
--------------
trunk/plugins/FritzBox/FritzBox/CallAction.cs
trunk/plugins/FritzBox/FritzBox/Caller.cs
trunk/plugins/FritzBox/FritzBox/FritzBox.cs
trunk/plugins/FritzBox/FritzBox/FritzBoxClient.cs
trunk/plugins/FritzBox/FritzBox/FritzBoxConfig.cs
trunk/plugins/FritzBox/FritzBox/PhoneBook.cs
trunk/plugins/FritzBox/FritzBox/Properties/AssemblyInfo.cs
trunk/plugins/FritzBox/Tools/FritzBoxConfigTester/Program.cs
Added Paths:
-----------
trunk/plugins/FritzBox/FritzBox.4.5.resharper
Modified: trunk/plugins/FritzBox/FritzBox/CallAction.cs
===================================================================
--- trunk/plugins/FritzBox/FritzBox/CallAction.cs 2009-06-16 12:26:37 UTC (rev 2928)
+++ trunk/plugins/FritzBox/FritzBox/CallAction.cs 2009-06-16 17:44:55 UTC (rev 2929)
@@ -35,19 +35,28 @@
ConnectionClosed,
}
- public CallType type;
- public DateTime time = DateTime.MinValue;
- public Caller caller = new Caller();
- public string msn = string.Empty;
+ public CallType Type { get; set; }
+ public DateTime Time { get; set; }
+ public Caller Caller { get; set; }
+ public string MSN { get; set; }
+
+ public CallAction()
+ {
+ Time = DateTime.MinValue;
+ Caller = new Caller();
+ MSN = string.Empty;
+ }
+
+
public void WriteToLog()
{
Log.Info("CallAction Info:");
- Log.Info(" CallType: {0}", type.ToString());
- Log.Info(" Date: {0}", time.ToShortDateString());
- Log.Info(" Time: {0}", time.ToShortTimeString());
- Log.Info(" Caller: {0}", caller.ID);
- Log.Info(" MSN: {0}", msn);
+ Log.Info(" CallType: {0}", Type.ToString());
+ Log.Info(" Date: {0}", Time.ToShortDateString());
+ Log.Info(" Time: {0}", Time.ToShortTimeString());
+ Log.Info(" Caller: {0}", Caller.ID);
+ Log.Info(" MSN: {0}", MSN);
}
}
}
\ No newline at end of file
Modified: trunk/plugins/FritzBox/FritzBox/Caller.cs
===================================================================
--- trunk/plugins/FritzBox/FritzBox/Caller.cs 2009-06-16 12:26:37 UTC (rev 2928)
+++ trunk/plugins/FritzBox/FritzBox/Caller.cs 2009-06-16 17:44:55 UTC (rev 2929)
@@ -24,40 +24,22 @@
{
public class Caller
{
- private string _id;
- private string _name;
- private bool _show;
-
public Caller()
{
- _id = "";
- _name = "";
- _show = true;
+ ID = string.Empty;
+ Name = string.Empty;
+ Show = true;
}
public Caller(string id, string name, bool show)
{
- _id = id;
- _name = name;
- _show = show;
+ ID = id;
+ Name = name;
+ Show = show;
}
- public string ID
- {
- get { return _id; }
- set { _id = value; }
- }
-
- public string Name
- {
- get { return _name; }
- set { _name = value; }
- }
-
- public bool Show
- {
- get { return _show; }
- set { _show = value; }
- }
+ public string ID { get; set; }
+ public string Name { get; set; }
+ public bool Show { get; set; }
}
}
\ No newline at end of file
Modified: trunk/plugins/FritzBox/FritzBox/FritzBox.cs
===================================================================
--- trunk/plugins/FritzBox/FritzBox/FritzBox.cs 2009-06-16 12:26:37 UTC (rev 2928)
+++ trunk/plugins/FritzBox/FritzBox/FritzBox.cs 2009-06-16 17:44:55 UTC (rev 2929)
@@ -39,103 +39,55 @@
{
#region Properties
- public static bool ExtensiveLogging
- {
- get { return extensiveLogging; }
- set { extensiveLogging = value; }
- }
+ public static bool ExtensiveLogging { get; set; }
- private static bool extensiveLogging = false;
-
/// <summary>
/// stop media when an event happend
/// </summary>
- public static bool StopMedia
- {
- get { return stopMedia; }
- set { stopMedia = value; }
- }
+ public static bool StopMedia { get; set; }
- private static bool stopMedia = true;
-
/// <summary>
/// resume media when notify is closed
/// </summary>
- public static bool ResumeMedia
- {
- get { return resumeMedia; }
- set { resumeMedia = value; }
- }
+ public static bool ResumeMedia { get; set; }
- private static bool resumeMedia = true;
+ public static int MaxNotifies { get; set; }
-
- public static int MaxNotifies
- {
- get { return maxNotifies; }
- set { maxNotifies = value; }
- }
-
- private static int maxNotifies = 20;
-
/// <summary>
/// autoclose the dialog after the timeout expired
/// </summary>
- public static int NotifyTimeout
- {
- get { return notifyTimeout; }
- set { notifyTimeout = value; }
- }
+ public static int NotifyTimeout { get; set; }
- private static int notifyTimeout = 10;
+ public static bool CloseOnTimeout { get; set; }
- public static bool CloseOnTimeout
- {
- get { return closeOnTimeout; }
- set { closeOnTimeout = value; }
- }
+ public static bool CloseOnConnectionClosed { get; set; }
- private static bool closeOnTimeout = false;
+ public static bool ShowMsnOnHeading { get; set; }
- public static bool CloseOnConnectionClosed
- {
- get { return closeOnConnectionClosed; }
- set { closeOnConnectionClosed = value; }
- }
+ public static bool FilterMSN { get; set; }
- private static bool closeOnConnectionClosed = false;
-
- public static bool ShowMsnOnHeading
+ public static List<String> MSNList
{
- get { return showMsnOnHeading; }
- set { showMsnOnHeading = value; }
- }
-
- private static bool showMsnOnHeading = false;
-
-
- public static bool FilterMSNs
- {
- get { return filterMSNs; }
- set { filterMSNs = value; }
- }
-
- private static bool filterMSNs = false;
-
- public static List<String> MsnList
- {
get
{
- if (msnList == null)
- msnList = new List<String>();
+ if (_msnList == null)
+ _msnList = new List<String>();
- return msnList;
+ return _msnList;
}
- set { msnList = value; }
+ set { _msnList = value; }
}
- private static List<String> msnList;
+ private static List<String> _msnList;
+ static Settings()
+ {
+ StopMedia = true;
+ ResumeMedia = true;
+ MaxNotifies = 20;
+ NotifyTimeout = 10;
+ }
+
#endregion
public static void Load()
@@ -162,10 +114,10 @@
//if ((!CloseOnTimeout) || (NotifyTimeout == 0))
// NotifyTimeout = -1;
- FilterMSNs = xmlreader.GetValueAsBool("fritzbox", "filterMSNs", false);
+ FilterMSN = xmlreader.GetValueAsBool("fritzbox", "filterMSNs", false);
string strMSN = xmlreader.GetValueAsString("fritzbox", "MSN", "");
char[] charSeparators = new char[] {';'};
- MsnList.AddRange(strMSN.Split(charSeparators, StringSplitOptions.RemoveEmptyEntries));
+ MSNList.AddRange(strMSN.Split(charSeparators, StringSplitOptions.RemoveEmptyEntries));
ShowMsnOnHeading = xmlreader.GetValueAsBool("fritzbox", "showMsnOnHeading", false);
@@ -196,9 +148,9 @@
xmlwriter.SetValue("fritzbox", "timeout", NotifyTimeout);
xmlwriter.SetValueAsBool("fritzbox", "closeOnConnectionClosed", CloseOnConnectionClosed);
- xmlwriter.SetValueAsBool("fritzbox", "filterMSNs", FilterMSNs);
+ xmlwriter.SetValueAsBool("fritzbox", "filterMSNs", FilterMSN);
string strMSN = "";
- foreach (string msn in MsnList)
+ foreach (string msn in MSNList)
{
strMSN += msn + ";";
}
@@ -240,30 +192,18 @@
#region Variables
- public const string _version = "0.3.3.1";
+ public const string VERSION = "0.3.3.1";
- private readonly List<CallAction> actionList = new List<CallAction>();
- private object tempNotify = null;
+ private readonly List<CallAction> _actionList = new List<CallAction>();
+ private object _tempNotify = null;
private int notifyCount = 0;
private bool _showNotify = true;
- private readonly List<CallAction> notifyQueue = new List<CallAction>();
+ private readonly List<CallAction> _notifyQueue = new List<CallAction>();
#endregion
- #region Constructors and Destructors
-
- public FritzBox()
- {
- }
-
- ~FritzBox()
- {
- }
-
- #endregion
-
#region Private Functions/Methods
private void OnStartExternal(Process proc, bool waitForExit)
@@ -282,10 +222,10 @@
{
_showNotify = true;
- //for (int i = 0; i < notifyQueue.Count; i++)
- // OnFritzBoxEvent(notifyQueue[i]);
+ //for (int i = 0; i < _notifyQueue.Count; i++)
+ // OnFritzBoxEvent(_notifyQueue[i]);
- notifyQueue.Clear();
+ _notifyQueue.Clear();
}
private void OnCallAction(CallAction callAction)
@@ -296,15 +236,15 @@
if (!_showNotify)
{
Log.Info("External process is running. Notify is queued and will be shown later.");
- notifyQueue.Add(callAction);
+ _notifyQueue.Add(callAction);
return;
}
- switch (callAction.type)
+ switch (callAction.Type)
{
case CallAction.CallType.Incoming:
if (PhoneBook.Enabled)
- callAction.caller = PhoneBook.GetCaller(callAction.caller);
+ callAction.Caller = PhoneBook.GetCaller(callAction.Caller);
OnIncomingCall(callAction);
break;
case CallAction.CallType.Outgoing:
@@ -315,7 +255,7 @@
if (Settings.CloseOnConnectionClosed)
{
Log.Info("_closeOnConnectionClosed is enabled. try to close active notify.");
- if (tempNotify != null)
+ if (_tempNotify != null)
{
Action act = new Action();
act.wID = Action.ActionType.ACTION_CLOSE_DIALOG;
@@ -354,43 +294,43 @@
{
Log.Info("FRITZ!Box: OnIncomingCall()");
- if (tempNotify != null)
+ if (_tempNotify != null)
{
Log.Info("yet another dialog is active. action is sent to queue.");
- if (actionList.Count < Settings.MaxNotifies - 1)
- actionList.Add(callAction);
+ if (_actionList.Count < Settings.MaxNotifies - 1)
+ _actionList.Add(callAction);
return;
}
//config settings for dialog
- string strHeading = String.Empty;
- string strImage = String.Empty;
- string strText = String.Empty;
+ string strHeading = string.Empty;
+ string strImage = string.Empty;
+ string strText = string.Empty;
// Set Heading for NotifyDialog
if (Settings.ShowMsnOnHeading)
- strHeading = GUILocalizeStrings.Get(1023) + " on " + callAction.msn; // ???? Incoming call on
+ strHeading = GUILocalizeStrings.Get(1023) + " on " + callAction.MSN; // ???? Incoming call on
else
strHeading = GUILocalizeStrings.Get(1023); // 1023 Incoming call
// Set Image for NotifyDialog
- strImage = GetCallerImage(callAction.caller);
+ strImage = GetCallerImage(callAction.Caller);
// Set MessageText for NotifyDialog
- if (callAction.caller.ID == "")
+ if (callAction.Caller.ID == "")
strText = GUILocalizeStrings.Get(2014); // 2014 = unknown
- else if (callAction.caller.Name == "")
- strText = callAction.caller.ID;
+ else if (callAction.Caller.Name == "")
+ strText = callAction.Caller.ID;
else
- strText = callAction.caller.Name;
+ strText = callAction.Caller.Name;
//config settings for dialog FINISHED
//if msn is disabled, stop here
- if (!IsMsnEnabled(callAction.msn)) return;
+ if (!IsMsnEnabled(callAction.MSN)) return;
//if notifies are disabled for this call, stop here
- if (!IsCallerEnabled(callAction.caller)) return;
+ if (!IsCallerEnabled(callAction.Caller)) return;
ShowNotify(strHeading, strImage, strText);
}
@@ -430,13 +370,13 @@
private bool IsMsnEnabled(string msn)
{
- if (!Settings.FilterMSNs)
+ if (!Settings.FilterMSN)
{
Log.Info("MSN filter is disabled.");
return true;
}
- if (Settings.MsnList.Contains(msn))
+ if (Settings.MSNList.Contains(msn))
{
Log.Info("MSN is on list.");
return true;
@@ -481,17 +421,17 @@
else
dlgNotify.TimeOut = -1;
- tempNotify = dlgNotify;
+ _tempNotify = dlgNotify;
dlgNotify.DoModal(GUIWindowManager.ActiveWindow);
if (g_Player.Playing && g_Player.Paused && Settings.StopMedia && Settings.ResumeMedia)
g_Player.Pause();
- tempNotify = null;
- if (actionList.Count > 0)
+ _tempNotify = null;
+ if (_actionList.Count > 0)
{
- CallAction tmpAction = actionList[0];
- actionList.RemoveAt(0);
+ CallAction tmpAction = _actionList[0];
+ _actionList.RemoveAt(0);
OnCallAction(tmpAction);
}
}
@@ -507,7 +447,7 @@
/// </summary>
public void Start()
{
- Log.Info("FRITZ!Box Plugin {0} starting.", _version);
+ Log.Info("FRITZ!Box Plugin {0} starting.", VERSION);
Settings.Load();
Utils.OnStartExternal += new Utils.UtilEventHandler(OnStartExternal);
@@ -523,7 +463,7 @@
/// </summary>
public void Stop()
{
- Log.Info("FRITZ!Box Plugin {0} stopping.", _version);
+ Log.Info("FRITZ!Box Plugin {0} stopping.", VERSION);
FritzBoxClient.StopClient();
FritzBoxClient.CallEvent -= new FritzBoxClient.CallEventHandler(OnCallAction);
Modified: trunk/plugins/FritzBox/FritzBox/FritzBoxClient.cs
===================================================================
--- trunk/plugins/FritzBox/FritzBox/FritzBoxClient.cs 2009-06-16 12:26:37 UTC (rev 2928)
+++ trunk/plugins/FritzBox/FritzBox/FritzBoxClient.cs 2009-06-16 17:44:55 UTC (rev 2929)
@@ -151,7 +151,8 @@
}
catch (Exception)
{
- Log(LogLevel.Error, "Port test failed: Make sure you are using the latest firmware and the call monitor is enabled (#96*5*)");
+ Log(LogLevel.Error,
+ "Port test failed: Make sure you are using the latest firmware and the call monitor is enabled (#96*5*)");
return;
}
@@ -323,30 +324,30 @@
CallAction callAction = new CallAction();
// time when action happens
- callAction.time = DateTime.Parse(strList[0], new CultureInfo("de-DE", false));
+ callAction.Time = DateTime.Parse(strList[0], new CultureInfo("de-DE", false));
// set the type of the callAction
switch (strList[1])
{
case "RING":
- callAction.type = CallAction.CallType.Incoming;
+ callAction.Type = CallAction.CallType.Incoming;
// sets the callerID
- callAction.caller.ID = strList[3];
- callAction.msn = strList[4];
+ callAction.Caller.ID = strList[3];
+ callAction.MSN = strList[4];
break;
case "CALL":
- callAction.type = CallAction.CallType.Outgoing;
+ callAction.Type = CallAction.CallType.Outgoing;
// sets the callerID
- callAction.caller.ID = strList[5];
- callAction.msn = strList[4];
+ callAction.Caller.ID = strList[5];
+ callAction.MSN = strList[4];
break;
case "CONNECT":
- callAction.type = CallAction.CallType.ConnectionStarted;
+ callAction.Type = CallAction.CallType.ConnectionStarted;
// sets the callerID
- callAction.caller.ID = strList[4];
+ callAction.Caller.ID = strList[4];
break;
case "DISCONNECT":
- callAction.type = CallAction.CallType.ConnectionClosed;
+ callAction.Type = CallAction.CallType.ConnectionClosed;
break;
default:
callAction = null;
Modified: trunk/plugins/FritzBox/FritzBox/FritzBoxConfig.cs
===================================================================
--- trunk/plugins/FritzBox/FritzBox/FritzBoxConfig.cs 2009-06-16 12:26:37 UTC (rev 2928)
+++ trunk/plugins/FritzBox/FritzBox/FritzBoxConfig.cs 2009-06-16 17:44:55 UTC (rev 2929)
@@ -40,7 +40,7 @@
private void LoadSettings()
{
- labelVersion.Text = "v" + FritzBox._version;
+ labelVersion.Text = "v" + FritzBox.VERSION;
FritzBox.Settings.Load();
@@ -57,13 +57,13 @@
numericUpDownTimeout.Enabled = checkBoxCloseOnTimout.Checked;
- checkBoxFilterMSNs.Checked = FritzBox.Settings.FilterMSNs;
+ checkBoxFilterMSNs.Checked = FritzBox.Settings.FilterMSN;
comboBoxMSNs.Enabled = checkBoxFilterMSNs.Checked;
buttonMSNsAdd.Enabled = checkBoxFilterMSNs.Checked;
buttonMSNsRemove.Enabled = checkBoxFilterMSNs.Checked;
comboBoxMSNs.Items.Clear();
- comboBoxMSNs.Items.AddRange(FritzBox.Settings.MsnList.ToArray());
+ comboBoxMSNs.Items.AddRange(FritzBox.Settings.MSNList.ToArray());
checkBoxShowMsnOnHeading.Checked = FritzBox.Settings.ShowMsnOnHeading;
@@ -99,11 +99,11 @@
FritzBox.Settings.NotifyTimeout = (int) numericUpDownTimeout.Value;
FritzBox.Settings.CloseOnConnectionClosed = checkBoxCloseOnConnectionClosed.Checked;
- FritzBox.Settings.FilterMSNs = checkBoxFilterMSNs.Checked;
- FritzBox.Settings.MsnList.Clear();
+ FritzBox.Settings.FilterMSN = checkBoxFilterMSNs.Checked;
+ FritzBox.Settings.MSNList.Clear();
foreach (object obj in comboBoxMSNs.Items)
{
- FritzBox.Settings.MsnList.Add((string) obj);
+ FritzBox.Settings.MSNList.Add((string) obj);
}
FritzBox.Settings.ShowMsnOnHeading = checkBoxShowMsnOnHeading.Checked;
@@ -383,12 +383,12 @@
// stopping client
FritzBoxClient.StopClient();
// clear text box
- labelHelp.Text = String.Empty;
+ labelHelp.Text = string.Empty;
// set current used text
FritzBoxClient.Address = textBoxAddress.Text;
- FritzBoxClient.Port = (int)numericUpDownPort.Value;
+ FritzBoxClient.Port = (int) numericUpDownPort.Value;
// port test
FritzBoxClient.TestConnection();
Modified: trunk/plugins/FritzBox/FritzBox/PhoneBook.cs
===================================================================
--- trunk/plugins/FritzBox/FritzBox/PhoneBook.cs 2009-06-16 12:26:37 UTC (rev 2928)
+++ trunk/plugins/FritzBox/FritzBox/PhoneBook.cs 2009-06-16 17:44:55 UTC (rev 2929)
@@ -36,67 +36,28 @@
#region public properties
- public static bool Enabled
- {
- get { return enabled; }
- set { enabled = value; }
- }
+ public static bool Enabled { get; set; }
- private static bool enabled = false;
+ public static bool ShowUnknownCaller { get; set; }
+ public static bool SaveUnknownCaller { get; set; }
- public static bool ShowUnknownCaller
- {
- get { return showUnknownCaller; }
- set { showUnknownCaller = value; }
- }
+ public static string SuffixHome { get; set; }
+ public static string SuffixWork { get; set; }
+ public static string SuffixMobile { get; set; }
- private static bool showUnknownCaller;
-
- public static bool SaveUnknownCaller
- {
- get { return saveUnknownCaller; }
- set { saveUnknownCaller = value; }
- }
-
- private static bool saveUnknownCaller;
-
- public static string SuffixHome
- {
- get { return suffixHome; }
- set { suffixHome = value; }
- }
-
- private static string suffixHome;
-
- public static string SuffixWork
- {
- get { return suffixWork; }
- set { suffixWork = value; }
- }
-
- private static string suffixWork;
-
- public static string SuffixMobile
- {
- get { return suffixMobile; }
- set { suffixMobile = value; }
- }
-
- private static string suffixMobile;
-
public static List<Caller> Contacts
{
get
{
- if (contacts == null)
- contacts = new List<Caller>();
+ if (_contacts == null)
+ _contacts = new List<Caller>();
- return contacts;
+ return _contacts;
}
- set { contacts = value; }
+ set { _contacts = value; }
}
- private static List<Caller> contacts;
+ private static List<Caller> _contacts;
#endregion
Modified: trunk/plugins/FritzBox/FritzBox/Properties/AssemblyInfo.cs
===================================================================
--- trunk/plugins/FritzBox/FritzBox/Properties/AssemblyInfo.cs 2009-06-16 12:26:37 UTC (rev 2928)
+++ trunk/plugins/FritzBox/FritzBox/Properties/AssemblyInfo.cs 2009-06-16 17:44:55 UTC (rev 2929)
@@ -56,5 +56,5 @@
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
-[assembly: AssemblyVersion(FritzBox.FritzBox._version)]
-[assembly: AssemblyFileVersion(FritzBox.FritzBox._version)]
\ No newline at end of file
+[assembly: AssemblyVersion(FritzBox.FritzBox.VERSION)]
+[assembly: AssemblyFileVersion(FritzBox.FritzBox.VERSION)]
\ No newline at end of file
Added: trunk/plugins/FritzBox/FritzBox.4.5.resharper
===================================================================
--- trunk/plugins/FritzBox/FritzBox.4.5.resharper (rev 0)
+++ trunk/plugins/FritzBox/FritzBox.4.5.resharper 2009-06-16 17:44:55 UTC (rev 2929)
@@ -0,0 +1,89 @@
+<Configuration>
+ <CodeStyleSettings>
+ <ExternalPath IsNull="False">
+ </ExternalPath>
+ <Sharing>SOLUTION</Sharing>
+ <CSharp>
+ <FormatSettings>
+ <MODIFIERS_ORDER IsNull="False">
+ <Item>public</Item>
+ <Item>protected</Item>
+ <Item>internal</Item>
+ <Item>private</Item>
+ <Item>new</Item>
+ <Item>abstract</Item>
+ <Item>virtual</Item>
+ <Item>override</Item>
+ <Item>sealed</Item>
+ <Item>static</Item>
+ <Item>readonly</Item>
+ <Item>extern</Item>
+ <Item>unsafe</Item>
+ <Item>volatile</Item>
+ </MODIFIERS_ORDER>
+ </FormatSettings>
+ <UsingsSettings />
+ <Naming2>
+ <ExceptionName IsNull="False">
+ </ExceptionName>
+ <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="TypesAndNamespaces" />
+ <PredefinedRule Inspect="True" Prefix="I" Suffix="" Style="AaBb" ElementKind="Interfaces" />
+ <PredefinedRule Inspect="True" Prefix="T" Suffix="" Style="AaBb" ElementKind="TypeParameters" />
+ <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="MethodPropertyEvent" />
+ <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="aaBb" ElementKind="Locals" />
+ <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="aaBb" ElementKind="LocalConstants" />
+ <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="aaBb" ElementKind="Parameters" />
+ <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="PublicFields" />
+ <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="Constants" />
+ <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="StaticReadonly" />
+ <PredefinedRule Inspect="True" Prefix="_" Suffix="" Style="aaBb" ElementKind="NotPublicStaticFields" />
+ <PredefinedRule Inspect="True" Prefix="_" Suffix="" Style="aaBb" ElementKind="NotPublicInstanceFields" />
+ <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="EnumMember" />
+ <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="Other" />
+ </Naming2>
+ </CSharp>
+ <VB>
+ <FormatSettings />
+ <ImportsSettings />
+ <Naming2 />
+ </VB>
+ <FileHeader Region="Copyright (C) 2005-2009 Team MediaPortal"><![CDATA[Copyright (C) 2005-2009 Team MediaPortal
+http://www.team-mediaportal.com
+
+This Program is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+This Program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Make; see the file COPYING. If not, write to
+the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
+http://www.gnu.org/copyleft/gpl.html]]></FileHeader>
+ <GenerateMemberBody />
+ <Naming2>
+ <ExceptionName IsNull="False">
+ </ExceptionName>
+ <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="aaBb" ElementKind="Locals" />
+ <PredefinedRule Inspect="True" Prefix="_" Suffix="" Style="aaBb" ElementKind="NotPublicInstanceFields" />
+ <PredefinedRule Inspect="True" Prefix="_" Suffix="" Style="aaBb" ElementKind="NotPublicStaticFields" />
+ <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="aaBb" ElementKind="Parameters" />
+ <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="EnumMember" />
+ <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="TypesAndNamespaces" />
+ <PredefinedRule Inspect="True" Prefix="I" Suffix="" Style="AaBb" ElementKind="Interfaces" />
+ <PredefinedRule Inspect="True" Prefix="T" Suffix="" Style="AaBb" ElementKind="TypeParameters" />
+ <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="MethodPropertyEvent" />
+ <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="aaBb" ElementKind="LocalConstants" />
+ <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="PublicFields" />
+ <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AA_BB" ElementKind="Constants" />
+ <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="StaticReadonly" />
+ <PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="Other" />
+ <Abbreviation Text="MSN" />
+ <Abbreviation Text="ID" />
+ </Naming2>
+ </CodeStyleSettings>
+</Configuration>
\ No newline at end of file
Modified: trunk/plugins/FritzBox/Tools/FritzBoxConfigTester/Program.cs
===================================================================
--- trunk/plugins/FritzBox/Tools/FritzBoxConfigTester/Program.cs 2009-06-16 12:26:37 UTC (rev 2928)
+++ trunk/plugins/FritzBox/Tools/FritzBoxConfigTester/Program.cs 2009-06-16 17:44:55 UTC (rev 2929)
@@ -32,8 +32,7 @@
{
Application.EnableVisualStyles();
- var plugin = new FritzBox.FritzBox();
- plugin.ShowPlugin();
+ new FritzBox.FritzBox().ShowPlugin();
}
}
}
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|