예제 #1
0
        protected void btnAccept_Click(object sender, EventArgs e)
        {
            if (_engine.AcceptColourAtAngle())
            {
                Response.Redirect("~/Finished.aspx");
            }

            lblPercentComplete.Text = ((int)(_engine.PercentComplete * 100f)).ToString() + "% Complete";
        }
예제 #2
0
        private void btnMatch_Click(object sender, RoutedEventArgs e)
        {
            bool Done = _engine.AcceptColourAtAngle();

            if (Done)
            {
                Finished();
            }
            lblPercentComplete.Text = ((int)(_engine.PercentComplete * 100f)).ToString() + "% Complete";
            SetColours();
            btnPrevColour.IsEnabled = false;
            btnMatch.IsEnabled      = false;
        }