public bool AddTerminal() { try { using (var context = new RubberSoftEntities()) { context.spt_AddTerminal(ClassProperty.GetCurrentName, ClassProperty.IPMachine, ClassProperty.MachineName, false); } return(true); } catch (Exception ex) { XtraMessageBox.Show(ex.Message); return(false); } }