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