protected override bool assignObject(object obj)
        {
            if (obj == null || obj.GetType() != typeof(Notes_ContractShell))
            {
                return false;
            }

            contract = (Notes_ContractShell)obj;

            return true;
        }
        public void contractsRefresh()
        {
            for (int i = 0; i < activeContractIDs.Count; i++)
            {
                Guid g = activeContractIDs[i];

                if (g == null)
                    continue;

                if (activeContracts.ContainsKey(g))
                    continue;

                contractContainer c = contractParser.getActiveContract(g);

                if (c == null)
                    continue;

                Notes_ContractShell shell = new Notes_ContractShell(c, this);

                activeContracts.Add(g, shell);
            }

            for (int i = 0; i < completedContractIDs.Count; i++)
            {
                Guid g = completedContractIDs[i];

                if (g == null)
                    continue;

                if (completedContracts.ContainsKey(g))
                    continue;

                contractContainer c = contractParser.getCompletedContract(g);

                if (c == null)
                    c = contractParser.getFailedContract(g);

                if (c == null)
                    continue;

                Notes_ContractShell shell = new Notes_ContractShell(c, this);

                completedContracts.Add(g, shell);
            }
        }