private void button1_Click(object sender, System.EventArgs e)
        {
            CheckScannerSimulator s = ServiceObjectReference.Target as CheckScannerSimulator;

            if (s != null)
            {
                if (button1.Text == "Insert Check")
                {
                    //CheckInserted = true;
                    s.CheckInserted = true;
                    button1.Text    = "Remove Check";
                }
                else
                {
                    //CheckInserted = false;
                    s.CheckInserted = false;
                    button1.Text    = "Insert Check";
                }
            }
        }
        private void button3_Click(object sender, System.EventArgs e)
        {
            CheckScannerSimulator s = ServiceObjectReference.Target as CheckScannerSimulator;

            if (s != null)
            {
                try
                {
                    s.WorkingStorage = new Bitmap(textBox1.Text);
                    if (s.WorkingStorage == null)
                    {
                        MessageBox.Show(this, string.Format("Unable to load image file: {0}", textBox1.Text), this.Text, MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                    }
                    else
                    {
                        MessageBox.Show(this, "Image file loaded", this.Text);
                    }
                }
                catch (ArgumentException)
                {
                    MessageBox.Show(this, string.Format("Unable to load image file: {0}", textBox1.Text), this.Text, MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                }
            }
        }
 public CheckScannerSimulatorWindow(CheckScannerSimulator serviceObject) : base(serviceObject)
 {
     Invoke(new MethodDelegate(InitializeComponent));
 }
Exemple #4
0
		public CheckScannerSimulatorWindow(CheckScannerSimulator serviceObject) : base(serviceObject)
		{
			Invoke(new MethodDelegate(InitializeComponent));
		}