private void UpdateGia(object ob, EventArgs e) { bool kqUpdate = NhomGia.UpdateGia(); if (!kqUpdate) { MessageBox.Show("Không cập nhật được giá thành!"); } else { MessageBox.Show("Cập nhật thành công!"); } }
private void UpdateGia(object ob, EventArgs e) { bool kqUpdate = NhomGia.UpdateGia(); if (!kqUpdate) { string msg = "Không cập nhật được giá thành!"; if (Config.GetValue("Language").ToString() == "1") { msg = UIDictionary.Translate(msg); } XtraMessageBox.Show(msg); } else { string msg = "Cập nhật thành công!"; if (Config.GetValue("Language").ToString() == "1") { msg = UIDictionary.Translate(msg); } XtraMessageBox.Show(msg); } }