예제 #1
0
 /// <summary>
 /// Returns true if all fields (other than ID) are empty.
 /// </summary>
 /// <param name="r"></param>
 /// <returns></returns>
 private bool IsEmptyRecord(ITCLib.Region r)
 {
     if (string.IsNullOrEmpty(r.RegionName) && (r.RegionID == 0 && NewRecord))
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
예제 #2
0
 private void Bs_PositionChanged(object sender, EventArgs e)
 {
     CurrentRegion = (ITCLib.Region)bs.Current;
     PopulateTree();
 }
예제 #3
0
 private void RegionDetails_Load(object sender, EventArgs e)
 {
     CurrentRegion = (ITCLib.Region)bs.Current;
 }