Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ui design—hj #13

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
916 changes: 465 additions & 451 deletions MathBrick/MathBrick/HomePage.Designer.cs

Large diffs are not rendered by default.

44 changes: 22 additions & 22 deletions MathBrick/MathBrick/HomePage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ private CCWin.SkinControl.SkinButton SetupButtonStyle(System.Drawing.Point point
btn.BaseColor = System.Drawing.Color.LightGray;
btn.BorderColor = System.Drawing.Color.DimGray;
btn.ControlState = CCWin.SkinClass.ControlState.Normal;
btn.Radius = 20;
btn.Radius = 10;
btn.RoundStyle = CCWin.SkinClass.RoundStyle.All;
btn.Size = new System.Drawing.Size(50, 57);
btn.Size = new System.Drawing.Size(40, 40);
btn.UseVisualStyleBackColor = false;
btn.Location = point;
btn.Text = text;
Expand Down Expand Up @@ -181,26 +181,6 @@ private string CalculateEquation(string str)
}
}

private void SelectQuiz(object sender, EventArgs e)
{
QuizList quizList = new QuizList();
quizList.Show();
}

private void Logout(object sender, EventArgs e)
{
DataBase.Instance.UserLogout();
this.Hide();
SignIn signIn = new SignIn();
signIn.Show();
}

private void ManageAccounts(object sender, EventArgs e)
{
ManagePage managePage = new ManagePage();
managePage.Show();
}

private void CustomizeTabControl()
{
User nowUser = DataBase.Instance.activeUser;
Expand Down Expand Up @@ -228,5 +208,25 @@ private void CustomizeTabControl()
break;
}
}

private void quizButton_Click(object sender, EventArgs e)
{
QuizList quizList = new QuizList();
quizList.Show();
}

private void manageButton_Click(object sender, EventArgs e)
{
ManagePage managePage = new ManagePage();
managePage.Show();
}

private void logoutButton_Click(object sender, EventArgs e)
{
DataBase.Instance.UserLogout();
this.Hide();
SignIn signIn = new SignIn();
signIn.Show();
}
}
}
33 changes: 20 additions & 13 deletions MathBrick/MathBrick/ManagePage.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions MathBrick/MathBrick/ManagePage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,10 @@ public ManagePage()
{
InitializeComponent();
}

private void returnButton_Click(object sender, EventArgs e)
{

}
}
}
Loading