예제 #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";
                }
            }
        }
예제 #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);
                }
            }
        }
예제 #3
0
 public CheckScannerSimulatorWindow(CheckScannerSimulator serviceObject) : base(serviceObject)
 {
     Invoke(new MethodDelegate(InitializeComponent));
 }
예제 #4
0
		public CheckScannerSimulatorWindow(CheckScannerSimulator serviceObject) : base(serviceObject)
		{
			Invoke(new MethodDelegate(InitializeComponent));
		}