static void DoActionHelpBox(bool isGluonMode) { string labelText = GetLabelText(isGluonMode); string buttonText = PlasticLocalization.GetString( PlasticLocalization.Name.GoButton); DrawActionHelpBox.For( Images.GetWarnDialogIcon(), labelText, buttonText, DoGoButtonAction); }
void DoExceptionErrorArea() { string labelText = PlasticLocalization.GetString( PlasticLocalization.Name.UnexpectedError); string buttonText = PlasticLocalization.GetString( PlasticLocalization.Name.ReloadButton); DrawActionHelpBox.For( Images.GetErrorDialogIcon(), labelText, buttonText, ExecuteFullReload); }
static void DoNoConfigAvailableArea(bool isGluonMode) { string labelText = "No configuration found. Plastic SCM plugin is disabled. " + "Please configure it by clicking here."; string buttonText = isGluonMode ? "Launch Gluon" : "Launch Plastic"; DrawActionHelpBox.For( Images.GetWarnDialogIcon(), labelText, buttonText, delegate { LaunchTool.OpenConfigurationForMode(isGluonMode); }); }