Added further customization
This commit is contained in:
+16
-11
@@ -38,7 +38,7 @@ namespace Test_Merge
|
||||
Size oldSize = new Size();
|
||||
Size oldGpbxPreviewSize = new Size();
|
||||
Size oldGpbxWindowPreviewSize = new Size();
|
||||
|
||||
|
||||
Size oldPbxPreviewSize = new Size();
|
||||
Size oldPbxWindowPreviewSize = new Size();
|
||||
|
||||
@@ -55,6 +55,15 @@ namespace Test_Merge
|
||||
oldGpbxWindowPreviewSize = gpbxWindowPreview.Size;
|
||||
oldPbxPreviewSize = pbxPreview.Size;
|
||||
oldPbxWindowPreviewSize = pbxWindowPreview.Size;
|
||||
|
||||
tip1.SetToolTip(btnCreatZone, "After clicking you can select two points in the image to set the bounds of the important data");
|
||||
tip1.SetToolTip(btnCreateWindow, "After clicking this you will have to select all the windows that are important on the lower image. Refer to the documentation for more infos");
|
||||
tip1.SetToolTip(btnRefresh, "Starts the emulator or refreshes the images if its already running");
|
||||
tip1.SetToolTip(btnResetDriver, "Resets the driver if something went wrong or if you want to test an other URL");
|
||||
tip1.SetToolTip(lsbDrivers, "The drivers that are on the image. Non-Case sensitive");
|
||||
tip1.SetToolTip(tbxPresetName, "The name of the preset you want to save");
|
||||
tip1.SetToolTip(pbxPreview, "What the emulator returns");
|
||||
tip1.SetToolTip(pbxWindowPreview, "One of the driver zones that the program managed to slice from the main zone");
|
||||
}
|
||||
private void RefreshUI()
|
||||
{
|
||||
@@ -414,10 +423,10 @@ namespace Test_Merge
|
||||
int xDiff = this.Width - oldSize.Width;
|
||||
int yDiff = this.Height - oldSize.Height;
|
||||
|
||||
gpbxPreview.Size = new Size(oldGpbxPreviewSize.Width + xDiff,oldGpbxPreviewSize.Height + yDiff);
|
||||
gpbxWindowPreview.Size = new Size(oldGpbxWindowPreviewSize.Width + xDiff,oldGpbxWindowPreviewSize.Height);
|
||||
pbxPreview.Size = new Size(oldPbxPreviewSize.Width + xDiff,oldPbxPreviewSize.Height + yDiff);
|
||||
pbxWindowPreview.Size = new Size(oldPbxWindowPreviewSize.Width + xDiff,oldPbxWindowPreviewSize.Height);
|
||||
gpbxPreview.Size = new Size(oldGpbxPreviewSize.Width + xDiff, oldGpbxPreviewSize.Height + yDiff);
|
||||
gpbxWindowPreview.Size = new Size(oldGpbxWindowPreviewSize.Width + xDiff, oldGpbxWindowPreviewSize.Height);
|
||||
pbxPreview.Size = new Size(oldPbxPreviewSize.Width + xDiff, oldPbxPreviewSize.Height + yDiff);
|
||||
pbxWindowPreview.Size = new Size(oldPbxWindowPreviewSize.Width + xDiff, oldPbxWindowPreviewSize.Height);
|
||||
}
|
||||
|
||||
private void btnDeletePreset_Click(object sender, EventArgs e)
|
||||
@@ -438,11 +447,11 @@ namespace Test_Merge
|
||||
}
|
||||
}
|
||||
|
||||
private void removeBorders(object sender,PaintEventArgs e)
|
||||
private void removeBorders(object sender, PaintEventArgs e)
|
||||
{
|
||||
GroupBox gpbx = (GroupBox)sender;
|
||||
|
||||
using (Pen pen = new Pen(gpbx.BackColor,50))
|
||||
using (Pen pen = new Pen(gpbx.BackColor, 50))
|
||||
{
|
||||
e.Graphics.DrawRectangle(pen, 0, 0, gpbx.Width - 1, gpbx.Height - 1);
|
||||
e.Graphics.DrawRectangle(pen, 0, 0, gpbx.Width - 1, gpbx.Height - 1);
|
||||
@@ -455,9 +464,5 @@ namespace Test_Merge
|
||||
}
|
||||
}
|
||||
|
||||
private void Settings_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user