Beispiel #1
0
 public bool Insert(Data data)
 {
     if (!DB.ContainsKey(data.name)){
         DB.Add(data.name,data);
         return true;
     }
     else
     {
         return false;
     }
 }
Beispiel #2
0
 public frm_AddEdit_Data(Data data_item)
 {
     InitializeComponent();
     this.data_to_edit = data_item;
     populate_fields();
 }
Beispiel #3
0
 public bool Update(Data data)
 {
     if (DB.ContainsKey(data.name))
     {
         DB[data.name] = data;
         return true;
     }
     else
     {
         return false;
     }
 }
Beispiel #4
0
 public Data_Speak(SpeechSynthesizer Profile_Synthesis, Data data)
 {
     this.Profile_Synthesis = Profile_Synthesis;
     this.data = data;
 }
Beispiel #5
0
 public bool Remove(Data data)
 {
     if (DB.ContainsKey(data.name))
     {
         DB.Remove(data.name);
         return true;
     }
     else
     {
         return false;
     }
 }
Beispiel #6
0
 public Data_Set(Data data, string value)
     : base(value)
 {
     this.value = value;
 }
Beispiel #7
0
 public Data_Increment(Data data, string value)
     : base(value)
 {
     this.value = value;
 }
Beispiel #8
0
 public Data_Decrement(Data data, string value)
     : base(value)
 {
     this.value = value;
 }
Beispiel #9
0
 public Data_Speak(SpeechSynthesizer Profile_Synthesis, Data data)
 {
     this.Profile_Synthesis = Profile_Synthesis;
     this.data = data;
 }
Beispiel #10
0
 public Data_Set(Data data, string value)
     : base(value)
 {
     this.value = value;
 }