/// <summary> /// Total Server Content Delete. /// </summary> private void DeleteAllButton_Click(object sender, EventArgs e) { CustomMessageBox messageBox = new CustomMessageBox("Are you sure that you would like to Delete the server content?"); messageBox.ShowDialog(); if (messageBox.returnValue == true) { if (UploadActiveButton.Text.Equals("Active")) { Alert.AlertCreation("Yes", AlertType.info); informationParser.ServerContentDelete_Process(serverOperator, mailSender); for (int i = 0; i <= 100; ++i) { AllServerDeleteProgressBar.Value = i; AllServerDeleteProgressBar.Update(); } Alert.AlertCreation("Delete Server Content Success!", AlertType.success); AllServerDeleteProgressBar.Value = 0; } else { Alert.AlertCreation("Inactive Server Connection", AlertType.error); return; } } else { Alert.AlertCreation("No", AlertType.info); } }