示例#1
0
 //
 // save and load data
 //
 public bool Save()
 {
     try
     {
         REGISTRY.SetData(FORM_ID.ToString(), new FormData(this));
         return(true);
     }
     catch { return(false); }
 }
示例#2
0
 //
 // Sure Dialog
 //
 private void yesButton_Click(object sender, EventArgs e)
 {
     REGISTRY.Delete(FORM_ID.ToString());
     Program.EmptySlots.Enqueue(FORM_ID);
     this.Close();
 }