//////////////////////////////////////////////////////ГРАНИЦА ФУНКЦИИ////////////////////////////////////////////////////////////// private void EnableDisableButtons() { if (updatesFound) { if (stopDownload) { comboBox1.Enabled = false; buttonAboutU.Enabled = false; buttonCvsU.Text = buttonCvsU_TS; } else { comboBox1.Enabled = true; buttonAboutU.Enabled = true; label5.Text = label5_T + FuncParser.convertFileSize(FuncParser.doubleRead(updateFolder + nameUpdateInfo, "Update_" + numberSelectFile, "update_file_filesize")); if (updateInstall) { buttonCvsU.Enabled = false; buttonCvsU.Text = buttonCvsU_TI; } else { buttonCvsU.Enabled = true; buttonCvsU.Text = buttonCvsU_TU; } } } else { comboBox1.Enabled = false; buttonAboutU.Enabled = false; label5.Text = ""; if (stopDownload) { buttonCvsU.Text = buttonCvsU_TS; } else { buttonCvsU.Text = buttonCvsU_TC; } } if (updatesCPFound) { if (stopDownload) { buttonUpdateCP.Enabled = false; } else { buttonUpdateCP.Enabled = true; buttonUpdateCP.Text = buttonUpdateCP_TE; } } else { buttonUpdateCP.Enabled = false; buttonUpdateCP.Text = buttonUpdateCP_TN; } }
// ------------------------------------------------ BORDER OF FUNCTION ---------------------------------------------------------- // private void enableDisableButtons() { if (updatesFound) { if (stopDownload) { comboBox_Updates.Enabled = false; button_AboutUpdate.Enabled = false; button_CheckUpdate.Text = textStop; } else { comboBox_Updates.Enabled = true; button_AboutUpdate.Enabled = true; label5.Text = textSize + FuncParser.convertFileSize(FuncParser.intRead(pathUpdateFolder + nameUpdateInfo, "Update_" + numberSelectFile, "update_file_filesize")); if (updateInstall) { button_CheckUpdate.Enabled = false; button_CheckUpdate.Text = textInstalled; } else { button_CheckUpdate.Enabled = true; button_CheckUpdate.Text = textUpdate; } } } else { comboBox_Updates.Enabled = false; button_AboutUpdate.Enabled = false; label5.Text = ""; if (stopDownload) { button_CheckUpdate.Text = textStop; } else { button_CheckUpdate.Text = textCheck; } } if (updatesCPFound) { if (stopDownload) { button_UpdateCP.Enabled = false; } else { button_UpdateCP.Enabled = true; button_UpdateCP.Text = textUpdate; } } else { button_UpdateCP.Enabled = false; button_UpdateCP.Text = textNoUpdate; } }