멀티 모니터 설정 버그 수정
This commit is contained in:
@@ -1,21 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace HSUCO_Cargo_Garage_Operation_Program.CustomForm
|
||||
{
|
||||
public partial class FindMonitor : Form
|
||||
{
|
||||
public FindMonitor(string monitorNumber)
|
||||
public FindMonitor(string monitorNumber, Point location)
|
||||
{
|
||||
InitializeComponent();
|
||||
this.StartPosition = FormStartPosition.Manual;
|
||||
label_No.Text = monitorNumber;
|
||||
this.Location = location;
|
||||
this.TopMost = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -102,13 +102,12 @@ namespace HSUCO_Cargo_Garage_Operation_Program.CustomUserControl
|
||||
|
||||
timer.Interval = 5000;
|
||||
timer.Tick += Timer_Tick;
|
||||
timer.Start();
|
||||
for (int i = 0; i < findMonitors.Length; i++)
|
||||
{
|
||||
findMonitors[i] = new FindMonitor((i + 1).ToString());
|
||||
findMonitors[i].Location = new System.Drawing.Point(scr[i].WorkingArea.Top, scr[i].WorkingArea.X);
|
||||
findMonitors[i] = new FindMonitor((i + 1).ToString(), new System.Drawing.Point(scr[i].Bounds.Left + 30, scr[i].Bounds.Top + 30));
|
||||
findMonitors[i].Show();
|
||||
}
|
||||
timer.Start();
|
||||
}
|
||||
|
||||
private void Timer_Tick(object sender, EventArgs e)
|
||||
|
@@ -31,5 +31,5 @@ using System.Runtime.InteropServices;
|
||||
// 모든 값을 지정하거나 아래와 같이 '*'를 사용하여 빌드 번호 및 수정 번호를
|
||||
// 기본값으로 할 수 있습니다.
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.5.*")]
|
||||
[assembly: AssemblyFileVersion("1.5.*")]
|
||||
[assembly: AssemblyVersion("1.6.*")]
|
||||
[assembly: AssemblyFileVersion("1.6.*")]
|
||||
|
Reference in New Issue
Block a user