示例#1
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnAdd_Click(object sender, EventArgs e)
        {
            if (this.DrawCurveInfoCollection.Count >= ForDrawCurveCount)
            {
                string s = string.Format(strings.CurveCountEnough, ForDrawCurveCount);
                NUnit.UiKit.UserMessage.DisplayInfo(s);
                return;
            }

            UCCurveSelectCondition f = new UCCurveSelectCondition();
            DialogResult dr = f.ShowDialog();

            if (dr == DialogResult.OK)
            {
                GRStationCurveInfo info = f.StationCurveInfo;
                BindingSource bs = this.lstCurveName.DataSource as BindingSource;
                bs.Add(info);
            }
        }
示例#2
0
 /// <summary>
 /// edit
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnEdit_Click(object sender, EventArgs e)
 {
     GRStationCurveInfo s = this.lstCurveName.SelectedItem as GRStationCurveInfo ;
     System.Diagnostics.Debug.Assert(s !=null);
     UCCurveSelectCondition f = new UCCurveSelectCondition(s);
     f.ShowDialog();
 }