Пример #1
0
        protected override void ds_SetOneRouteEvent(object sender, SetOneRouteResultEventArgs e)
        {
            if (sender == null || !(sender is DataFromSystem))
            {
                return;
            }
            DataFromSystem ds = (DataFromSystem)sender;

            if (e.Route == 1)
            {
                leftRoute1.Text = e.Res;
                if (EnterFirstRoute())
                {
                    SetEditMode(false);
                    ResultListSpeed.RefreshTable(listID, baseIID, RefreshData, cn, CR);
                    fromEvent = true;
                    try { SetNextClimber(); }
                    finally { fromEvent = false; }
                    if (leftIID.Text.Length > 0 && leftName.Text.Length > 0)
                    {
                        ds.Route1 = leftIID.Text + " " + leftName.Text + " (��.� " + leftStart.Text + ")";
                    }
                    else
                    {
                        ds.Route1 = "";
                    }
                }
            }
            else if (e.Route == 2 && IFSC_WR && (e.Res.IndexOf("�/�") > -1))
            {
                string iidLeft  = leftIID.Text,
                       resLeft  = leftRoute1.Text,
                       res2left = leftRoute2.Text,
                       sumLeft  = leftSum.Text;

                leftIID.Text    = lblIID.Text;
                leftRoute1.Text = e.Res;
                if (EnterFirstRoute(true))
                {
                    SetEditMode(false);
                    ResultListSpeed.RefreshTable(listID, baseIID, RefreshData, cn, CR);
                    fromEvent = true;
                    try { SetNextClimber(); }
                    finally { fromEvent = false; }
                    if (!String.IsNullOrEmpty(lblIID.Text) && !String.IsNullOrEmpty(lblName.Text))
                    {
                        ds.Route2 = lblIID.Text + " " + lblName.Text + " (��.� " + lblStart.Text + ")";
                    }
                    else
                    {
                        ds.Route2 = String.Empty;
                    }
                }
            }
        }
Пример #2
0
 protected override DataFromSystem.ResStr[] PutData(DataFromSystem ds, string r1, string r2, out bool cancel)
 {
     ds.SetResMode(1, false, true);
     ds.SetResMode(2, this.sl is IvanovoListener, true);
     return(ds.ShowForm(out cancel));
 }