Beispiel #1
0
 /// <summary>
 /// Return First ToolType From the list and remove it from the list
 /// </summary>
 /// <returns></returns>
 public ToolTypeClass ExtractFirstToolType()
 {
     try
     {
         ToolTypeClass result = GetFirstToolType();
         DeletToolType(result);
         return(result);
     }
     catch (Exception) { return(null); }
 }
Beispiel #2
0
 public ToolTypeClass GetToolType(string toolTypeID)
 {
     try
     {
         ToolTypeClass toolType = new ToolTypeClass(toolTypeID);
         return(ToolTypeList[ToolTypeList.IndexOf(toolType)]);
     }
     catch (Exception)
     {
         MessageBox.Show("ToolType ID " + toolTypeID + " not found");
         return(null);
     }
 }
Beispiel #3
0
 /// <summary>
 /// Delete toolType From ToolTypeList
 /// </summary>
 /// <param name="toolType"></param>
 public void DeletToolType(ToolTypeClass toolType)
 {
     DeletToolType(toolType.ToolTypeID);
 }
Beispiel #4
0
 public void AddToolType(ToolTypeClass toolType)
 {
     ToolTypeList.Add(toolType);
 }
Beispiel #5
0
        public override bool Equals(object obj)
        {
            ToolTypeClass ToolType = (ToolTypeClass)obj;

            return(ToolTypeID.Equals(ToolType.ToolTypeID));
        }