42 lines
1.1 KiB
C#
42 lines
1.1 KiB
C#
using AntdUI;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
|
|
namespace AntdUIDemo.Views
|
|
{
|
|
public partial class PreviewDemo : UserControl
|
|
{
|
|
private AntdUI.Window window;
|
|
public PreviewDemo(AntdUI.Window _window)
|
|
{
|
|
window = _window;
|
|
InitializeComponent();
|
|
BindEventHandler();
|
|
}
|
|
|
|
private void BindEventHandler()
|
|
{
|
|
button_view.Click += Button_view_Click;
|
|
button_views.Click += Button_views_Click;
|
|
}
|
|
|
|
private void Button_views_Click(object sender, EventArgs e)
|
|
{
|
|
Preview.open(new Preview.Config(window,
|
|
[Properties.Resources.bg1, Properties.Resources.bg2, Properties.Resources.bg3]));
|
|
}
|
|
|
|
private void Button_view_Click(object sender, EventArgs e)
|
|
{
|
|
Preview.open(new Preview.Config(window, Properties.Resources.bg1));
|
|
}
|
|
}
|
|
}
|