Beispiel #1
0
 public void OnBigLineSelectedEvent(object sender, ParentChildRelateEventArgs <string> e)
 {
     if (this.BiglineSelectedEvent != null)
     {
         BiglineSelectedEvent(sender, e);
     }
 }
Beispiel #2
0
        private void ucButtonOK_Click(object sender, EventArgs e)
        {
            if (this.ultraGridBigLines.Rows.Count == 0)
            {
                return;
            }

            string bigLineList = string.Empty;

            for (int i = 0; i < ultraGridBigLines.Rows.Count; i++)
            {
                if (ultraGridBigLines.Rows[i].Cells[0].Text.ToLower() == "true")
                {
                    bigLineList += "," + ultraGridBigLines.Rows[i].Cells["BigLine"].Text.Trim().ToUpper();
                }
            }

            if (bigLineList.Length > 0)
            {
                bigLineList = bigLineList.Substring(1);
            }

            ParentChildRelateEventArgs <string> args = new ParentChildRelateEventArgs <string>(bigLineList);

            this.OnBigLineSelectedEvent(sender, args);
            this.Close();
        }
Beispiel #3
0
 private void bigLineSelector_BigLineSelectedEvent(object sender, ParentChildRelateEventArgs <string> e)
 {
     this.txtBigLineList.Text = e.CustomObject;
 }