Beispiel #1
0
 public MadCalcPluginInfo GetInfo()
 {
     if (info == null)
     {
         info             = new MadCalcPluginInfo();
         info.Author      = "foxsoft2005";
         info.Description = "Simple credit calculator plugin for MadCalc.";
         info.HtmlHelp    = "Under construction.";
         info.Name        = "MadCreditCalc";
         info.Version     = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();
     }
     return(info);
 }
Beispiel #2
0
 private void comboboxPreset_SelectedIndexChanged(object sender, EventArgs e)
 {
     setControlsState(comboboxPreset.SelectedIndex != 0);
     curinfo = null;
     if (comboboxPreset.SelectedIndex > 0)
     {
         IMadCalcMain calc = (IMadCalcMain)comboboxPreset.SelectedItem;
         lbAllowed.Visible = calc.IsEmptyExprAllowed();
         curinfo           = calc.GetInfo();
     }
     else
     {
         lbAllowed.Visible = false;
     }
 }