예제 #1
0
        static void DoActionHelpBox(bool isGluonMode)
        {
            string labelText = GetLabelText(isGluonMode);

            string buttonText = PlasticLocalization.GetString(
                PlasticLocalization.Name.GoButton);

            DrawActionHelpBox.For(
                Images.GetWarnDialogIcon(), labelText, buttonText,
                DoGoButtonAction);
        }
예제 #2
0
        void DoExceptionErrorArea()
        {
            string labelText = PlasticLocalization.GetString(
                PlasticLocalization.Name.UnexpectedError);

            string buttonText = PlasticLocalization.GetString(
                PlasticLocalization.Name.ReloadButton);

            DrawActionHelpBox.For(
                Images.GetErrorDialogIcon(), labelText, buttonText,
                ExecuteFullReload);
        }
예제 #3
0
        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);
            });
        }