Skip to content

Commit

Permalink
Normalize newlines in *.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
dgrunwald committed Nov 5, 2013
1 parent e050421 commit 52ab4d3
Show file tree
Hide file tree
Showing 23 changed files with 5,355 additions and 5,352 deletions.
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*.cs text diff=csharp
*.sln text eol=crlf
*.csproj text eol=crlf
Original file line number Diff line number Diff line change
@@ -1,82 +1,82 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)

using System;
using System.Windows.Controls;
using ICSharpCode.Core;

namespace ICSharpCode.SharpDevelop.Gui.Pads
{
public sealed class ShowZoomControlCommand : AbstractCheckableMenuCommand
{
ParallelStackPad pad;

public override object Owner {
get { return base.Owner; }
set {
if (!(value is ParallelStackPad))
throw new Exception("Owner has to be a ParallelStackPad");
pad = value as ParallelStackPad;
base.Owner = value;
}
}

public override bool IsChecked {
get { return pad.IsZoomControlVisible; }
set { pad.IsZoomControlVisible = value; }
}
}

public sealed class ToggleMethodViewCommand : AbstractCheckableMenuCommand
{
ParallelStackPad pad;

public override object Owner {
get { return base.Owner; }
set {
if (!(value is ParallelStackPad))
throw new Exception("Owner has to be a AbstractConsolePad");
pad = value as ParallelStackPad;
base.Owner = value;
}
}

public override bool IsChecked {
get { return pad.IsMethodView; }
set { pad.IsMethodView = value; }
}
}

public sealed class ParallelStacksViewCommand : AbstractComboBoxCommand
{
ParallelStackPad pad;
ComboBox box;

protected override void OnOwnerChanged(EventArgs e)
{
this.pad = this.Owner as ParallelStackPad;
if (this.pad == null)
return;

box = this.ComboBox as ComboBox;

if (this.box == null)
return;

foreach (var name in Enum.GetNames(typeof(ParallelStacksView)))
box.Items.Add(name);

box.SelectedIndex = 0;

base.OnOwnerChanged(e);
}

public override void Run()
{
if (this.pad != null && this.box != null) {
pad.ParallelStacksView = (ParallelStacksView)Enum.Parse(typeof(ParallelStacksView), box.SelectedValue.ToString());
}
base.Run();
}
}
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)

using System;
using System.Windows.Controls;
using ICSharpCode.Core;

namespace ICSharpCode.SharpDevelop.Gui.Pads
{
public sealed class ShowZoomControlCommand : AbstractCheckableMenuCommand
{
ParallelStackPad pad;

public override object Owner {
get { return base.Owner; }
set {
if (!(value is ParallelStackPad))
throw new Exception("Owner has to be a ParallelStackPad");
pad = value as ParallelStackPad;
base.Owner = value;
}
}

public override bool IsChecked {
get { return pad.IsZoomControlVisible; }
set { pad.IsZoomControlVisible = value; }
}
}

public sealed class ToggleMethodViewCommand : AbstractCheckableMenuCommand
{
ParallelStackPad pad;

public override object Owner {
get { return base.Owner; }
set {
if (!(value is ParallelStackPad))
throw new Exception("Owner has to be a AbstractConsolePad");
pad = value as ParallelStackPad;
base.Owner = value;
}
}

public override bool IsChecked {
get { return pad.IsMethodView; }
set { pad.IsMethodView = value; }
}
}

public sealed class ParallelStacksViewCommand : AbstractComboBoxCommand
{
ParallelStackPad pad;
ComboBox box;

protected override void OnOwnerChanged(EventArgs e)
{
this.pad = this.Owner as ParallelStackPad;
if (this.pad == null)
return;

box = this.ComboBox as ComboBox;

if (this.box == null)
return;

foreach (var name in Enum.GetNames(typeof(ParallelStacksView)))
box.Items.Add(name);

box.SelectedIndex = 0;

base.OnOwnerChanged(e);
}

public override void Run()
{
if (this.pad != null && this.box != null) {
pad.ParallelStacksView = (ParallelStacksView)Enum.Parse(typeof(ParallelStacksView), box.SelectedValue.ToString());
}
base.Run();
}
}
}
Original file line number Diff line number Diff line change
@@ -1,47 +1,47 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the BSD license (for details please see \src\AddIns\Debugger\Debugger.AddIn\license.txt)

using System;
using Debugger;
using Debugger.AddIn;
using ICSharpCode.Core;
using ICSharpCode.NRefactory;
using ICSharpCode.SharpDevelop.Debugging;
using ICSharpCode.SharpDevelop.Services;
using System.Windows.Controls;

namespace ICSharpCode.SharpDevelop.Gui.Pads
{
class SelectLanguageCommand : AbstractComboBoxCommand
{
ConsolePad pad;
ComboBox box;

protected override void OnOwnerChanged(EventArgs e)
{
this.pad = this.Owner as ConsolePad;
if (this.pad == null)
return;

box = this.ComboBox as ComboBox;

if (this.box == null)
return;

foreach (var name in Enum.GetNames(typeof(SupportedLanguage)))
box.Items.Add(name);

box.SelectedIndex = 0;

base.OnOwnerChanged(e);
}

public override void Run()
{
if (this.pad != null && this.box != null) {
pad.SelectedLanguage = (SupportedLanguage)Enum.Parse(typeof(SupportedLanguage), box.SelectedValue.ToString());
}
base.Run();
}
}
}
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the BSD license (for details please see \src\AddIns\Debugger\Debugger.AddIn\license.txt)

using System;
using Debugger;
using Debugger.AddIn;
using ICSharpCode.Core;
using ICSharpCode.NRefactory;
using ICSharpCode.SharpDevelop.Debugging;
using ICSharpCode.SharpDevelop.Services;
using System.Windows.Controls;

namespace ICSharpCode.SharpDevelop.Gui.Pads
{
class SelectLanguageCommand : AbstractComboBoxCommand
{
ConsolePad pad;
ComboBox box;

protected override void OnOwnerChanged(EventArgs e)
{
this.pad = this.Owner as ConsolePad;
if (this.pad == null)
return;

box = this.ComboBox as ComboBox;

if (this.box == null)
return;

foreach (var name in Enum.GetNames(typeof(SupportedLanguage)))
box.Items.Add(name);

box.SelectedIndex = 0;

base.OnOwnerChanged(e);
}

public override void Run()
{
if (this.pad != null && this.box != null) {
pad.SelectedLanguage = (SupportedLanguage)Enum.Parse(typeof(SupportedLanguage), box.SelectedValue.ToString());
}
base.Run();
}
}
}
Loading

0 comments on commit 52ab4d3

Please sign in to comment.