Ejemplo n.º 1
0
        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";
                }
            }
        }
Ejemplo n.º 2
0
        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);
                }
            }
        }
Ejemplo n.º 3
0
 public CheckScannerSimulatorWindow(CheckScannerSimulator serviceObject) : base(serviceObject)
 {
     Invoke(new MethodDelegate(InitializeComponent));
 }
Ejemplo n.º 4
0
		public CheckScannerSimulatorWindow(CheckScannerSimulator serviceObject) : base(serviceObject)
		{
			Invoke(new MethodDelegate(InitializeComponent));
		}