void on_delete_preset_clicked()
        {
            if (CC.PrinterDB.ActivePreset == CC.PrinterDB.ActiveMachine.DefaultPreset)
            {
                return;
            }

            CotangentUI.ShowModalConfirmDialog("Delete Preset?",
                                               "Are you sure you want to delete this Preset? <b>You cannot undo this change</b>",
                                               "Yes, Delete", "Cancel", null,
                                               (obj) => { CC.PrinterDB.DeleteActivePreset(); }, null);
        }
 void on_save_preset_clicked()
 {
     if (CC.PrinterDB.ActivePreset == CC.PrinterDB.ActiveMachine.DefaultPreset)
     {
         CotangentUI.ShowModalConfirmDialog("Change Defaults?",
                                            "Are you sure you want to change the Machine Defaults? <b>You cannot undo this change</b>. Use the <i>Derive New Preset...</i> option in the Presets List to save the current settings as a new Preset",
                                            "Update Defaults", "Cancel", null,
                                            (obj) => { CC.PrinterDB.SaveActivePreset(); }, null);
     }
     else
     {
         CC.PrinterDB.SaveActivePreset();
     }
 }