old_flsystem/应用/同步老妖联盟上下级关系/Class1.cs

78 lines
1.9 KiB
C#
Raw Permalink Normal View History

2022-09-20 03:10:29 +00:00
using Api.Framework;
using Api.Framework.SDK;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using .Properties;
namespace
{
public class Class1 : Plugin
{
public Class1()
{
this.Logo = Resources.;
this.Name = "同步老妖联盟上下级关系";
this.Note = "__ __";
}
#region
private MainForm mainForm = null;
#endregion
public override void Start()
{
//try
//{
//var session = ApiClient.GetSession();
//创建配置文件
//Config = this.ReadConfig<Config>();
//SDK.WXNewFriendEvent += SDK_WXNewFriendEvent;
//SDK.OrderNoticeEvent += SDK_OrderNoticeEvent;
//SDK.ReciveIMEvent += SDK_ReciveIMEvent;
//}
//catch (Exception ex)
//{
// this.OnLog(ex.Message);
//}
}
public override void ShowForm()
{
try
{
if (mainForm == null || mainForm.IsDisposed)
{
mainForm = new MainForm();
mainForm.Show();
}
mainForm.TopMost = true;
mainForm.TopMost = false;
}
catch (Exception ex)
{
this.OnLog(ex.Message);
}
}
public override void Stop()
{
try
{
if (mainForm != null)
{
mainForm.CloseForm();
mainForm = null;
}
}
catch (Exception ex)
{
this.OnLog(ex.Message);
}
}
}
}