void CheckIncomingChanges.IUpdateIncomingChanges.Show( string infoText, string actionText, string tooltipText, CheckIncomingChanges.Severity severity) { PlasticNotification.Status status = PlasticNotification.Status.None; if (severity == CheckIncomingChanges.Severity.Info) { status = PlasticNotification.Status.IncomingChanges; } else if (severity == CheckIncomingChanges.Severity.Warning) { status = PlasticNotification.Status.Conflicts; } PlasticPlugin.SetNotificationStatus( mPlasticWindow, status); UpdateData( mNotification, infoText, actionText, tooltipText, status); mHasNotification = true; mPlasticWindow.Repaint(); }
void CheckIncomingChanges.IUpdateIncomingChanges.Show( string infoText, string actionText, string tooltipText, CheckIncomingChanges.Severity severity, CheckIncomingChanges.Action action) { PlasticNotification.Status status = PlasticNotification.Status.None; if (severity == CheckIncomingChanges.Severity.Info) { status = PlasticNotification.Status.IncomingChanges; } else if (severity == CheckIncomingChanges.Severity.Warning) { status = PlasticNotification.Status.Conflicts; } mPlasticWindow.SetNotificationStatus(status); UpdateData( mPanelData, infoText, actionText, tooltipText, severity, action); mIsVisible = true; mPlasticWindow.Repaint(); }
void CheckIncomingChanges.IUpdateIncomingChanges.Show( string infoText, string actionText, string tooltipText, CheckIncomingChanges.Severity severity) { UpdateData( mPanelData, infoText, actionText, tooltipText, severity); mIsVisible = true; mWindow.Repaint(); }
static void UpdateData( NotificationPanelData data, string infoText, string actionText, string tooltipText, CheckIncomingChanges.Severity severity) { data.HasUpdateAction = false; data.InfoText = infoText; data.ActionText = actionText; data.TooltipText = tooltipText; data.NotificationStyle = severity == CheckIncomingChanges.Severity.Info ? NotificationPanelData.StyleType.Green : NotificationPanelData.StyleType.Red; }
void CheckIncomingChanges.IUpdateIncomingChanges.Show( string infoText, string actionText, string tooltipText, CheckIncomingChanges.Severity severity, CheckIncomingChanges.Action action) { mPlasticWindow.SetupWindowTitle(true); UpdateData( mPanelData, infoText, actionText, tooltipText, severity, action); mIsVisible = true; mPlasticWindow.Repaint(); }