private void btnRememberMe_Click(object sender, EventArgs e)
        {
            if (this.client == null)
            {
                var context = new InstanceContext(this);
                this.client = new ВistributedСalculationClient(context);
                this.client.Open();
            }

            bool result = this.client.RememberCalculationUnit();

            RememberResult(result);
        }
Ejemplo n.º 2
0
        private async void CalculateDate()
        {
            if (this.client == null)
            {
                var context = new InstanceContext(this);
                this.client = new ВistributedСalculationClient(context);
                this.client.Open();
            }

            this.SetMessage("Начало вычислений");

            var indata = new CalculationInput()
            {
                Start = this.Start, End = this.End
            };
            CalculationOutput result = await this.client.GetCalculationAsync(indata);

            this.SetResult(result);
        }