コード例 #1
0
        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();
            }
        }
コード例 #2
0
 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();
         }
     }
 }