public bool Insert(Data data) { if (!DB.ContainsKey(data.name)){ DB.Add(data.name,data); return true; } else { return false; } }
public frm_AddEdit_Data(Data data_item) { InitializeComponent(); this.data_to_edit = data_item; populate_fields(); }
public bool Update(Data data) { if (DB.ContainsKey(data.name)) { DB[data.name] = data; return true; } else { return false; } }
public Data_Speak(SpeechSynthesizer Profile_Synthesis, Data data) { this.Profile_Synthesis = Profile_Synthesis; this.data = data; }
public bool Remove(Data data) { if (DB.ContainsKey(data.name)) { DB.Remove(data.name); return true; } else { return false; } }
public Data_Set(Data data, string value) : base(value) { this.value = value; }
public Data_Increment(Data data, string value) : base(value) { this.value = value; }
public Data_Decrement(Data data, string value) : base(value) { this.value = value; }