Archive Browser
Download Cyotek.Windows.Forms.ImageBox.zip version 1.1.4.2, last updated 13/02/2014 (1.62 MB)
Download- md5: eafe88cd279eec36bc79f6409f0fc49d
using System;
using System.Windows.Forms;
namespace Cyotek.Windows.Forms.Demo
{
// Cyotek ImageBox
// Copyright (c) 2010-2014 Cyotek.
// http://cyotek.com
// http://cyotek.com/blog/tag/imagebox
// Licensed under the MIT License. See imagebox-license.txt for the full text.
// If you use this control in your applications, attribution, donations or contributions are welcome.
internal partial class MainMenuForm : AboutDialog
{
#region Public Constructors
public MainMenuForm()
{
InitializeComponent();
}
#endregion
#region Overridden Methods
protected override void OnLoad(EventArgs e)
{
TabPage demoPage;
base.OnLoad(e);
demoPage = new TabPage
{
UseVisualStyleBackColor = true,
Padding = new Padding(9),
Text = "Demonstrations"
};
groupBox1.Dock = DockStyle.Fill;
demoPage.Controls.Add(groupBox1);
this.TabControl.TabPages.Insert(0, demoPage);
this.TabControl.SelectedTab = demoPage;
this.Text = "Cyotek ImageBox Control for Windows Forms";
}
#endregion
#region Private Members
private void ShowDemo<T>() where T : Form, new()
{
Cursor.Current = Cursors.WaitCursor;
using (Form form = new T())
{
form.ShowDialog(this);
}
}
#endregion
#region Event Handlers
private void animatedGifDemoButton_Click(object sender, EventArgs e)
{
this.ShowDemo<AnimatedGifDemoForm>();
}
private void dragTestDemoButton_Click(object sender, EventArgs e)
{
this.ShowDemo<DragTestForm>();
}
private void imageBoxDemoButton_Click(object sender, EventArgs e)
{
this.ShowDemo<ImageBoxDemoForm>();
}
private void pixelGridDemoButton_Click(object sender, EventArgs e)
{
this.ShowDemo<PixelGridForm>();
}
private void resizableSelectionDemoButton_Click(object sender, EventArgs e)
{
this.ShowDemo<ResizableSelectionDemoForm>();
}
private void scaledAdornmentsDemoButton_Click(object sender, EventArgs e)
{
this.ShowDemo<ScaledAdornmentsDemoForm>();
}
private void sizeModeDemoButton_Click(object sender, EventArgs e)
{
this.ShowDemo<SizeModeDemoForm>();
}
private void switchImageDuringZoomDemoButton_Click(object sender, EventArgs e)
{
this.ShowDemo<SwitchImageDuringZoomDemoForm>();
}
private void textDemoButton_Click(object sender, EventArgs e)
{
this.ShowDemo<TextDemoForm>();
}
private void virtualModeDemoButton_Click(object sender, EventArgs e)
{
this.ShowDemo<VirtualModeDemonstrationForm>();
}
#endregion
}
}
Donate
This software may be used free of charge, but as with all free software there are costs involved to develop and maintain.
If this site or its services have saved you time, please consider a donation to help with running costs and timely updates.
Donate