using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TwainLib;
using System.Drawing.Imaging;
using TwainGui;
using System.Runtime.InteropServices;
using GdiPlusLib;
using WindowsFormsApplication1;
using System.IO;
namespace TwainGui
{
public class MainFrame : System.Windows.Forms.Form, IMessageFilter
{
private System.Windows.Forms.MdiClient mdiClient1;
private System.Windows.Forms.MenuItem menuMainFile;
private System.Windows.Forms.MenuItem menuItemScan;
private System.Windows.Forms.MenuItem menuItemSelSrc;
private System.Windows.Forms.MenuItem menuMainWindow;
private System.Windows.Forms.MenuItem menuItemExit;
private System.Windows.Forms.MenuItem menuItemSepr;
private System.Windows.Forms.MainMenu mainFrameMenu;
private MenuItem menuItem1;
private IContainer components;
public MainFrame()
{
InitializeComponent();
tw = new Twain();
tw.Init(this.Handle);
}
protected override void Dispose(bool disposing)
{
if (disposing)
{
tw.Finish();
if (components != null)
{
components.Dispose();
}
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.menuMainFile = new System.Windows.Forms.MenuItem();
this.menuItemSelSrc = new System.Windows.Forms.MenuItem();
this.menuItemScan = new System.Windows.Forms.MenuItem();
this.menuItemSepr = new System.Windows.Forms.MenuItem();
this.menuItemExit = new System.Windows.Forms.MenuItem();
this.mainFrameMenu = new System.Windows.Forms.MainMenu(this.components);
this.menuMainWindow = new System.Windows.Forms.MenuItem();
this.menuItem1 = new System.Windows.Forms.MenuItem();
this.mdiClient1 = new System.Windows.Forms.MdiClient();
this.SuspendLayout();
//
// menuMainFil