예제 #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>));
 }