コード例 #1
0
        public ADEPTFormInputs GetFormInputs()
        {
            ADEPTFormInputs myInputs = new ADEPTFormInputs();

            myInputs.Symbol = txtSymbol.Text;
            myInputs.Thing  = txtThing.Text;
            return(myInputs);
        }
コード例 #2
0
        private void btnSearch_Click(object sender, EventArgs e)
        {
            List <ADEPTNodeDTO> myNodes = new List <ADEPTNodeDTO>();

            if (myManager != null && string.Compare(myManager.db_connectionstatus, "active") == 0)
            {
                ADEPTFormInputs myInputs = GetFormInputs();
                myNodes = myManager.Search(myInputs);
            }
        }
コード例 #3
0
        private void btnUpsert_Click(object sender, EventArgs e)
        {
            ADEPTNodeDTO resultNode = new ADEPTNodeDTO();

            if (myManager != null && string.Compare(myManager.db_connectionstatus, "active") == 0)
            {
                ADEPTFormInputs myInputs   = GetFormInputs();
                ADEPTNodeDTO    targetNode = myInputs != null?myInputs.ToNodeDTO() : null;

                if (targetNode != null)
                {
                    resultNode = myManager.Upsert(targetNode);
                }
            }
        }
コード例 #4
0
 public List <ADEPTNodeDTO> Search(ADEPTFormInputs targetInputs)
 {
     return(default(List <ADEPTNodeDTO>));
 }