Ejemplo n.º 1
0
 public EmployeeDetailView()
 {
     InitializeComponent();
     _proxy            = new ProfileProxy();
     hph               = new HRMPermissionHelper();
     permissionManager = PermissionManager.GetPermissionManager();
     AuthorizeForm();
 }
Ejemplo n.º 2
0
 public NewPersonView()
 {
     InitializeComponent();
     proxy             = new ProfileProxy();
     hph               = new HRMPermissionHelper();
     permissionManager = PermissionManager.GetPermissionManager();
     AuthorizeForm();
 }
		/** Tests the getter of patterns */
		public void TestGet () {
			ProfileProxy pf = new ProfileProxy();
			Motif pat1 = new Motif( "motif1", AlphabetType.DNA, "ac", 0 );
			Motif pat2 = new Motif( "motif2", AlphabetType.DNA, "ag", 0 );
			pf.Add( pat1 );
			pf.Add( pat2 );
			Assert.AreEqual( pat1, pf.Pattern( 0 ) );
			Assert.AreEqual( pat2, pf.Pattern( 1 ) );
		}
Ejemplo n.º 4
0
    private void StupPlayerProfile()
    {
        _profile = GetComponent <ProfileProxy>();
        if (_profile == null)
        {
            throw new MissingComponentException("Player is missing its profile!");
        }

        print(_profile.PrettyPrint());
    }
		/** Tests the adding of patterns to a profile */
		public void TestAdd () {
			IPattern pattern1, pattern2;
			ProfileElement element1, element2;
			ProfileProxy pf = new ProfileProxy();
			Assert.AreEqual( 0, pf.Count );

			pattern1 = new Motif( "motif1", AlphabetType.DNA, "ac", 0 );
			element1 = pf.Add( null, ProfileElement.AlignmentType.NONE, 0, 0, pattern1 );
			Assert.AreEqual( 1, pf.Count );
			Assert.AreEqual( pattern1, element1.Pattern );

			pattern2 = new Motif( "motif2", AlphabetType.DNA, "tg", 0 );
			element2 = pf.Add( element1, ProfileElement.AlignmentType.START, -2, -1, pattern2 );
			Assert.AreEqual( 2, pf.Count );
			Assert.AreEqual( ProfileElement.AlignmentType.START, element2.Alignment );
			Assert.AreEqual( -2, element2.MinGap );
			Assert.AreEqual( -1, element2.MaxGap );
			Assert.AreEqual( ProfileElement.AlignmentType.START, element2.Alignment );
			Assert.AreEqual( element1, element2.RefElement );
		}
Ejemplo n.º 6
0
 public void RefreshList()
 {
     proxy = new ProfileProxy();
     LoadNodeEmployees();
 }