void ShowUploaderWindow() { if (uploaderWindow == null || uploaderWindow.IsDisposed) { uploaderWindow = new UploaderWindow(); int left = this.Left + (this.Width - uploaderWindow.Width) / 2; int top = this.Top + (this.Height - uploaderWindow.Height) / 2; uploaderWindow.Location = new Point(left, top); uploaderWindow.Memory = system.CPU.Memory; uploaderWindow.Show(); } else { uploaderWindow.BringToFront(); } }
void ShowUploaderWindow() { if (uploaderWindow == null || uploaderWindow.IsDisposed) { uploaderWindow = new UploaderWindow(); int left = this.Left + (this.Width - uploaderWindow.Width) / 2; int top = this.Top + (this.Height - uploaderWindow.Height) / 2; uploaderWindow.Location = new Point(left, top); uploaderWindow.kernel = kernel; uploaderWindow.SetBoardVersion(version); uploaderWindow.Show(); } else { uploaderWindow.BringToFront(); } }