private void AddCadance_Click(object sender, EventArgs e) { CommonData.CadenceEdit = false; CommonData.CadenceSaved = false; CadanceDefinitionForm form = new CadanceDefinitionForm(); form.ShowDialog(); if (CommonData.CadenceSaved) { ReadWrite.WriteCadenceDatabase(); PopulateCadanceList(); } }
private void EditCadance_Click(object sender, EventArgs e) { if (CadanceList.FocusedItem != null && CadanceList.FocusedItem.Index != -1) { CommonData.CadenceEdit = true; CommonData.CadenceSaved = false; CadanceDefinitionForm form = new CadanceDefinitionForm(); form.ShowDialog(); if (CommonData.CadenceSaved) { ReadWrite.WriteCadenceDatabase(); PopulateCadanceList(); } } }