2021-06-18 14:08:43 +02:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using System.Data;
|
|
|
|
|
using System.Diagnostics;
|
|
|
|
|
using System.Drawing;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using System.Windows.Forms;
|
|
|
|
|
using DutyContent.Interface;
|
|
|
|
|
|
|
|
|
|
namespace DutyContent.Tab
|
|
|
|
|
{
|
|
|
|
|
public partial class UpdateNotifyForm : Form, Interface.ISuppLocale, Interface.ISuppActPlugin
|
|
|
|
|
{
|
|
|
|
|
private static UpdateNotifyForm _self;
|
|
|
|
|
public static UpdateNotifyForm Self => _self;
|
|
|
|
|
|
|
|
|
|
private int _newtag;
|
|
|
|
|
|
|
|
|
|
public UpdateNotifyForm(int newtag, string body)
|
|
|
|
|
{
|
|
|
|
|
_self = this;
|
|
|
|
|
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
|
|
|
|
|
_newtag = newtag;
|
|
|
|
|
txtBody.Text = body;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void PluginInitialize()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void PluginDeinitialize()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void RefreshLocale()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void UpdateUiLocale()
|
|
|
|
|
{
|
2021-08-14 16:35:53 +02:00
|
|
|
|
lblTitle.Text = Locale.Text(207, DcConfig.PluginTag, _newtag);
|
|
|
|
|
lblMesg.Text = Locale.Text(208);
|
|
|
|
|
lblLink.Text = Locale.Text(209);
|
2021-06-18 14:08:43 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void LblLink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
|
|
|
|
{
|
|
|
|
|
Process.Start(lblLink.Text);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|