Skip to content
This repository was archived by the owner on Apr 16, 2022. It is now read-only.

Commit 0373de7

Browse files
Codebase entirely refactored
1 parent 9b8cf39 commit 0373de7

File tree

72 files changed

+278
-604
lines changed

Some content is hidden

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

72 files changed

+278
-604
lines changed
Binary file not shown.

.vs/raptoreum-rtminer/v16/.suo

-46 KB
Binary file not shown.
Binary file not shown.

.vs/raptoreum-saltyminer/v16/.suo

-52 KB
Binary file not shown.
71.3 KB
Binary file not shown.

.vs/saltyminer/v16/.suo

49.5 KB
Binary file not shown.

Design.cs

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,39 @@
55

66
namespace salty_namespace
77
{
8+
// Class used for main design system
9+
public partial class Design
10+
{
11+
// Gets the information required to move the form with the mouse
12+
public int WM_NCHITTEST = 0x84;
13+
public int HTCLIENT = 0x1;
14+
public int HTCAPTION = 0x2;
15+
16+
// Variable to locate saltyminer
17+
public saltyminer sm;
18+
19+
// Changes the set box color
20+
public void set_box_DrawItem(object sender, DrawItemEventArgs e)
21+
{
22+
var brush = new SolidBrush(Color.FromKnownColor(KnownColor.ControlDarkDark));
23+
24+
if (e.Index < 0) return;
25+
26+
//if the item state is selected them change the back color
27+
if ((e.State & DrawItemState.Selected) == DrawItemState.Selected)
28+
e = new DrawItemEventArgs(e.Graphics, e.Font, e.Bounds, e.Index, e.State ^ DrawItemState.Selected, e.ForeColor, Color.FromArgb(50, 50, 50));
29+
30+
// Draw the background of the ListBox control for each item.
31+
e.DrawBackground();
32+
33+
// Draw the current item text
34+
e.Graphics.DrawString(sm.set_box.Items[e.Index].ToString(), e.Font, brush, e.Bounds, StringFormat.GenericDefault);
35+
36+
// If the ListBox has focus, draw a focus rectangle around the selected item.
37+
e.DrawFocusRectangle();
38+
}
39+
}
40+
841
// Class used to create rounded panel design
942
public class RoundedPanel : Panel
1043
{

Form.Designer.cs

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)