private void EditRecord() { var item = listView.SelectedItem; var storage = (IAzManStorage)Session["storage"]; var app = (IAzManItem)Session["selectedObject"]; var editOperation = new Forms.Definition.OperationEdit(); editOperation.ShowDialog(); }
private void EditRecord() { if (listView.SelectedItem != null) { var item = listView.SelectedItem; // 由 IAzManApplication 改為 IAzManItem Session["selectedObject"] = _Application.GetItem(item.Text.Trim()); var editOperation = new Forms.Definition.OperationEdit(); editOperation.FormClosed += Operation_FormClosed; editOperation.ShowDialog(); } }