mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-03 17:56:44 +02:00
28 lines
724 B
C#
28 lines
724 B
C#
// Copyright (c) Microsoft Corporation
|
|
// The Microsoft Corporation licenses this file to you under the MIT license.
|
|
// See the LICENSE file in the project root for more information.
|
|
|
|
using System;
|
|
|
|
namespace Wox.Plugin
|
|
{
|
|
public class ToolTipData
|
|
{
|
|
public string Title { get; private set; }
|
|
|
|
public string Text { get; private set; }
|
|
|
|
public ToolTipData(string title, string text)
|
|
{
|
|
if (string.IsNullOrEmpty(title))
|
|
{
|
|
// DO NOT LOCALIZE internal exception message
|
|
throw new ArgumentException("title cannot be null or empty", nameof(title));
|
|
}
|
|
|
|
Title = title;
|
|
Text = text;
|
|
}
|
|
}
|
|
}
|