Skip to content

Commit

Permalink
change URL
Browse files Browse the repository at this point in the history
  • Loading branch information
millo-L committed Dec 20, 2020
1 parent 35500a2 commit 9c41acd
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 11 deletions.
2 changes: 1 addition & 1 deletion program/program/Controller/MainController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace program.Controller
{
public class MainController
{
private string URL = "http://test.inchang.dev:9000";
private string URL = "https://test.inchang.dev:9000";
private Stack<Form> formNavigator;
private Form nowForm { get; set; }
public Form NowForm
Expand Down
9 changes: 5 additions & 4 deletions program/program/Controller/ProcessController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,15 @@ public void GetProcess()
allProc = Process.GetProcesses(); //시스템의 모든 프로세스 정보 출력
int i = 1;

Console.WriteLine("****** 모든 프로세스 정보 ******");
Console.WriteLine("현재 실행중은 모든 프로세스 수 : {0}", allProc.Length);

//Console.WriteLine("****** 모든 프로세스 정보 ******");
//Console.WriteLine("현재 실행중은 모든 프로세스 수 : {0}", allProc.Length);
/*
foreach (Process p in allProc) {
//Console.WriteLine("***** {0}번째 프로세스 ******", i++);
//WriteProcessInfo(p);
//Console.WriteLine();
}
*/
}

catch (Exception e) {
Expand Down Expand Up @@ -70,7 +71,7 @@ private void time_tick_1(object sender, EventArgs e)
{
if (processInfo.ProcessName == "chrome")
{
mainController.examLog("Process", processInfo.ProcessName, now, room_id);
//mainController.examLog("Process", processInfo.ProcessName, now, room_id);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion program/program/View/Components/StudentWebRTCPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ private void initwebrtc()
CefSettings settings = new CefSettings();
settings.CefCommandLineArgs.Add("enable-media-stream", "1");
if (!Cef.IsInitialized) Cef.Initialize(settings);
browser = new ChromiumWebBrowser("https://webrtc.inchang.dev:10001/?mode=receiver&autoStart=true&userId=" + student_id + "&roomId=" + room_id);
browser = new ChromiumWebBrowser("https://test.inchang.dev:10001/?mode=receiver&autoStart=true&userId=" + student_id + "&roomId=" + room_id);
browser.Dock = DockStyle.Fill;
this.webrtcPanel.Controls.Add(browser);
}
Expand Down
11 changes: 6 additions & 5 deletions program/program/View/ExamView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public ExamView(MainController mainController, string room_id, string student_id
if (isStudent)
{
// 프로그램 화면 크기 모니터 해상도에 맞춤
this.WindowState = FormWindowState.Maximized;
//this.WindowState = FormWindowState.Maximized;
}
}

Expand Down Expand Up @@ -157,8 +157,8 @@ private void ExamView_Load1(object sender, EventArgs e)

this.BackColor = Color.DarkGray;
// 프로그램 중앙에 메인패널 위치
this.mainPanel.BackColor = Color.WhiteSmoke;
this.mainPanel.Location = new System.Drawing.Point((this.Width - this.mainPanel.Width) / 2, (this.Height - this.mainPanel.Height) / 2);
//this.mainPanel.BackColor = Color.WhiteSmoke;
//this.mainPanel.Location = new System.Drawing.Point((this.Width - this.mainPanel.Width) / 2, (this.Height - this.mainPanel.Height) / 2);

exitButton.Visible = false;
minimizeButton.Visible = false;
Expand Down Expand Up @@ -269,9 +269,10 @@ private void initwebrtc()
CefSettings settings = new CefSettings();
settings.CefCommandLineArgs.Add("enable-media-stream", "1");
if(!Cef.IsInitialized) Cef.Initialize(settings);
browser = new ChromiumWebBrowser("https://webrtc.inchang.dev:10001/?mode=sender&autoStart=true&userId=" + mainController.Me.ID + "&roomId=" + this.room_id);
browser = new ChromiumWebBrowser("https://test.inchang.dev:10001/?mode=sender&autoStart=true&userId=" + mainController.Me.ID + "&roomId=" + this.room_id);
browser.Dock = DockStyle.Fill;
this.webrtcPanel.Controls.Add(browser);
this.webrtcPanel.BringToFront();
}

private void connectWebsocket()
Expand Down Expand Up @@ -523,7 +524,7 @@ private void timer_Tick_1(object sender, EventArgs e)

if (keyboard.Count > 0)
{
keyboardLog();
//keyboardLog();
}

double diffTotalSeconds = (examDate - date).TotalSeconds;
Expand Down
2 changes: 2 additions & 0 deletions program/program/View/StudentLectureEditView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ private void homePictureBox_Click(object sender, EventArgs e)

private void lectureTable_CellClick(object sender, DataGridViewCellEventArgs e)
{
if (e.RowIndex < 0) return;
//MessageBox.Show(lectureTable.Rows[e.RowIndex].Cells[0].Value.ToString());
if(lectureTable.Rows[e.RowIndex].Cells[0].Value.ToString().Equals("False"))
lectureTable.Rows[e.RowIndex].Cells[0].Value = true;
Expand All @@ -201,6 +202,7 @@ private void lectureTable_CellClick(object sender, DataGridViewCellEventArgs e)

private void myLectureTable_CellClick(object sender, DataGridViewCellEventArgs e)
{
if (e.RowIndex < 0) return;
if (myLectureTable.Rows[e.RowIndex].Cells[0].Value.ToString().Equals("False"))
myLectureTable.Rows[e.RowIndex].Cells[0].Value = true;
else
Expand Down

0 comments on commit 9c41acd

Please sign in to comment.