Esempio n. 1
0
 private void simpleButton1_Click(object sender, EventArgs e)
 {
     if(textEdit1.Text==""){
         MessageBox.Show("���Ʋ���Ϊ�ա�","��ʾ",MessageBoxButtons.OK,MessageBoxIcon.Information);
         return;
     }
     UseGroup ug = new UseGroup();
     ug.UID = Guid.NewGuid().ToString();
     ug.GroupName = textEdit1.Text;
     ug.Content = content;
     ug.Remark = textEdit2.Text;
     ug.X = rect.X.ToString();
     ug.Y = rect.Y.ToString();
     ug.Width = rect.Width.ToString();
     ug.Height = rect.Height.ToString();
     Services.BaseService.Create<UseGroup>(ug);
     this.Close();
 }
Esempio n. 2
0
 private void gridControl_DoubleClick(object sender, EventArgs e)
 {
     Object = FocusedObject;
 }