/*--------------------------------------------------------------------*/ /* Создание операции ------------------------------------------------ */ void CreateOperation() { FormClientOperation Rapid_ClientOperation = new FormClientOperation(); Rapid_ClientOperation.MdiParent = ClassForms.Rapid_Client; Rapid_ClientOperation.Text = "Новая операция."; Rapid_ClientOperation.Show(); }
/*--------------------------------------------------------------------*/ /* Редактировать операцию ------------------------------------------- */ void OpenEditOperation() { if (listView1.SelectedIndices.Count > 0) { FormClientOperation Rapid_ClientOperation = new FormClientOperation(); Rapid_ClientOperation.MdiParent = ClassForms.Rapid_Client; Rapid_ClientOperation.Text = "Изменить операцию."; Rapid_ClientOperation.ActionID = listView1.Items[listView1.SelectedIndices[0]].SubItems[6].Text.ToString(); Rapid_ClientOperation.DocID = listView1.Items[listView1.SelectedIndices[0]].SubItems[7].Text.ToString(); Rapid_ClientOperation.Show(); } }
/*--------------------------------------------------------------------*/ /* Редактировать операцию ------------------------------------------- */ void OpenEditOperation() { if(listView1.SelectedIndices.Count > 0){ FormClientOperation Rapid_ClientOperation = new FormClientOperation(); Rapid_ClientOperation.MdiParent = ClassForms.Rapid_Client; Rapid_ClientOperation.Text = "Изменить операцию."; Rapid_ClientOperation.ActionID = listView1.Items[listView1.SelectedIndices[0]].SubItems[6].Text.ToString(); Rapid_ClientOperation.DocID = listView1.Items[listView1.SelectedIndices[0]].SubItems[7].Text.ToString(); Rapid_ClientOperation.Show(); } }