-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Added correct TLS encryption for accessing the patterns
Also fixed some code style issues
- Loading branch information
Showing
15 changed files
with
236 additions
and
217 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,30 @@ | ||
using System.Windows.Controls; | ||
using System.Windows.Media; | ||
|
||
namespace ChromeDevExtWarningPatcher { | ||
class CustomCheckBox : CheckBox { | ||
public int Group; | ||
|
||
public CustomCheckBox(string text, string tooltip, int group) : base() { | ||
Content = text; | ||
Foreground = BorderBrush = new SolidColorBrush(Color.FromRgb(202, 62, 71)); | ||
Group = group; | ||
|
||
if (tooltip != null) | ||
ToolTip = tooltip; | ||
} | ||
|
||
public CustomCheckBox(GuiPatchGroupData patchGroupData) : this(patchGroupData.Name, patchGroupData.Tooltip, patchGroupData.Group) { | ||
IsChecked = patchGroupData.Default; | ||
} | ||
|
||
public CustomCheckBox(string text) : this(text, null, -1) { } | ||
} | ||
|
||
struct GuiPatchGroupData { | ||
public string Name, Tooltip; | ||
public int Group; | ||
public bool Default; | ||
} | ||
} | ||
using System.Windows.Controls; | ||
using System.Windows.Media; | ||
|
||
namespace ChromeDevExtWarningPatcher { | ||
class CustomCheckBox : CheckBox { | ||
public int Group; | ||
|
||
public CustomCheckBox(string text, string tooltip, int group) { | ||
this.Content = text; | ||
this.Foreground = this.BorderBrush = new SolidColorBrush(Color.FromRgb(202, 62, 71)); | ||
this.Group = group; | ||
|
||
if (tooltip != null) { | ||
this.ToolTip = tooltip; | ||
} | ||
} | ||
|
||
public CustomCheckBox(GuiPatchGroupData patchGroupData) : this(patchGroupData.Name, patchGroupData.Tooltip, patchGroupData.Group) { | ||
this.IsChecked = patchGroupData.Default; | ||
} | ||
|
||
public CustomCheckBox(string text) : this(text, null, -1) { } | ||
} | ||
|
||
struct GuiPatchGroupData { | ||
public string Name, Tooltip; | ||
public int Group; | ||
public bool Default; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.