Inheritance: System.Windows.Forms.Form
Esempio n. 1
0
 private void lvAttributes_MouseDoubleClick()
 {
     if (dataUpdating)
         return;
     formDataAccess.WaitOne();
     ListView.SelectedListViewItemCollection selectedItems = lvAttributes.SelectedItems;
     if (selectedItems.Count > 0)
     {
         string text = selectedItems[0].Text;
         DataAttr dataAttr = new DataAttr();
         bool dataChanged = false;
         if (attrDataUtils.GetDataAttr(ref dataAttr, ref dataChanged, text, "lvAttributes_DoubleClick") && dataChanged)
         {
             AttrDataItemForm attrDataItemForm = new AttrDataItemForm(devForm);
             attrDataItemForm.DisplayMsgCallback = DisplayMsgCallback;
             attrDataItemForm.AttrDataItemChangedCallback = new AttrDataItemForm.AttrDataItemChangedDelegate(RspDataInChanged);
             attrDataItemForm.LoadData(text);
             int num = (int)attrDataItemForm.ShowDialog();
         }
     }
     formDataAccess.ReleaseMutex();
 }