Esempio n. 1
0
        /// <summary>
        /// 添加随机值
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnNewRandom_Click(object sender, EventArgs e)
        {
            frmRandom formRandom = new frmRandom();

            formRandom.OutRandomDelegate = OutRandomDelegate;
            formRandom.Show(this);
        }
Esempio n. 2
0
 /// <summary>
 /// 修改随机值
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnEditRandom_Click(object sender, EventArgs e)
 {
     if (this.listView_Random.SelectedItems.Count > 0)
     {
         frmRandom formRandom = new frmRandom();
         formRandom.EditObject        = this.listView_Random.SelectedItems[0];
         formRandom.OutRandomDelegate = OutRandomDelegate;
         formRandom.Show(this);
     }
     else
     {
         MessageBox.Show("请选择一个在进行编辑!");
     }
 }