示例#1
0
 /// <summary>
 /// 2.3.调用显示表单录入界面方法
 /// </summary>
 /// <param name="_etype"></param>
 private void ShowEntryFrom(UIModels.EntryType _etype)
 {
     EntryForm efrm = new EntryForm(_etype, SelectedDevice);
     efrm.ShowDialog();
 }
示例#2
0
 /// <summary>
 /// 3.1.编辑
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void ListItem_Edit_Click(object sender, EventArgs e)
 {
     if (this.RecordListView.SelectedObjects != null && this.RecordListView.SelectedObjects.Count > 0)
     {
         EntryForm efrm = new EntryForm(ThisType, this.RecordListView.SelectedObjects[0],ThisDevice);
         efrm.ShowDialog();
     }
     else
     {
         MessageBox.Show("请选中项后再试!");
     }
 }
示例#3
0
        /// <summary>
        /// 2.3.调用显示表单录入界面方法
        /// </summary>
        /// <param name="_etype"></param>
        private void ShowEntryFrom(UIModels.EntryType _etype)
        {
            EntryForm efrm = new EntryForm(_etype, SelectedDevice);

            efrm.ShowDialog();
        }