Beispiel #1
0
        private void ShowButton_Click(object sender, EventArgs e)
        {
            try
            {
                string LaderTypesID_nvc = string.Empty;
                if (!string.IsNullOrEmpty(TimerTime_intTextBox.Text))
                {
                    if (LaderTypeGridView.GetCheckedRows() != null)
                    {
                        foreach (Janus.Windows.GridEX.GridEXRow row in LaderTypeGridView.GetCheckedRows())
                        {
                            LaderTypesID_nvc = LaderTypesID_nvc + row.Cells["LaderTypeID_int"].Value.ToString() + ",";
                        }
                    }
                    if (LaderTypesID_nvc.EndsWith(","))
                    {
                        LaderTypesID_nvc = LaderTypesID_nvc.Substring(0, LaderTypesID_nvc.Length - 1);
                    }
                    HPS.Present.LadeAssignment.LadeAssignmentRepeaterForm frm = new HPS.Present.LadeAssignment.LadeAssignmentRepeaterForm(int.Parse(TimerTime_intTextBox.Text) * 1000, LaderTypesID_nvc, Convert.ToInt32(!string.IsNullOrEmpty(CommentShowTimeTextBox.Text) ? CommentShowTimeTextBox.Text : null));
                    frm.Show();

                    //this.Close();
                }
                else
                {
                    throw new ApplicationException("مدت زمان نمایش را وارد نمایید");
                }
            }
            catch (Exception ex)
            {
                Hepsa.Core.Common.MessageBox.ErrorMessage(ex.Message);
            }
        }
Beispiel #2
0
 private void CheckAllbutton_Click(object sender, EventArgs e)
 {
     LaderTypeGridView.CheckAllRecords();
 }