Exemple #1
0
        private void ButtonTest_Click(object sender, EventArgs e)
        {
            if (!SetConfiguration())
            {
                return;
            }

            if (_notifier.DialogData.Alignment == NotifierDialogAlignment.Custom)
            {
                _notifier.DialogData.Message = "这是测试通知。\r\n移动后关闭本窗口将更新手动定位坐标值。";
                _notifier.Notify((_sender, _e) =>
                {
                    var dialog = _sender as DialogNotifier;
                    if (dialog != null)
                    {
                        _notifier.DialogData.Location = dialog.Location;
                        LocationX.Value = dialog.Location.X;
                        LocationY.Value = dialog.Location.Y;
                    }
                });
            }
            else
            {
                _notifier.DialogData.Message = "这是测试通知。";
                _notifier.Notify();
            }
        }
 private void ButtonTest_Click(object sender, EventArgs e)
 {
     if (!SetConfiguration())
     {
         return;
     }
     _notifier.DialogData.Message = "テスト 通知です。";
     _notifier.Notify();
 }