public void Start(Control UiElement, string NodeName)
 {
     if (DBAdapter.OraDBCon.Connection.State == DBAdapterEnums.state.connected && DBAdapter.SQLServerDBCon.Connection.State == DBAdapterEnums.state.connected)
     {
         try
         {
             //if (NodeName == "NodeChangeAddress")
             //{
             //    frmActionExplorer.ActionDataSyncChangeAddress.ActionPropery.SynchronizingObject = this;
             //    frmActionExplorer.ActionDataSyncChangeAddress.ActionPropery.UiElement = UiElement;
             //    frmActionExplorer.ActionDataSyncChangeAddress.ActionPropery.Monitor = delegate () { MonitorChangeAddressDown(); };
             //    frmActionExplorer.ActionDataSyncChangeAddress.ActionPropery.DoWork = delegate () { doChangeAddressDown(); };
             //    frmActionExplorer.ActionDataSyncChangeAddress.ActionPropery.intiTimer(true, UiElement);
             //}
             if (NodeName == "NodeDirect")
             {
                 frmActionExplorer.ActionDataSyncPaymentDirect.ActionPropery.SynchronizingObject = this;
                 frmActionExplorer.ActionDataSyncPaymentDirect.ActionPropery.UiElement           = UiElement;
                 frmActionExplorer.ActionDataSyncPaymentDirect.ActionPropery.Monitor             = delegate() { MonitorDirectPaymentDown(); };
                 frmActionExplorer.ActionDataSyncPaymentDirect.ActionPropery.DoWork = delegate() { doDirectPaymentDown(); };
                 frmActionExplorer.ActionDataSyncPaymentDirect.ActionPropery.intiTimer(true, UiElement);
             }
         }
         catch (Exception ex)
         {
             throw ex;
         }
     }
     else
     {
         frmDBConnect obj = new frmDBConnect();
         obj.ShowDialog();
     }
 }
Example #2
0
        private void tvActionExplorer_MouseUp(object sender, MouseEventArgs e)
        {
            if (e.Button == System.Windows.Forms.MouseButtons.Right)
            {
                if (DBAdapter.OraDBCon.Connection.State == DBAdapterEnums.state.connected && DBAdapter.SQLServerDBCon.Connection.State == DBAdapterEnums.state.connected)
                {
                    try
                    {
                        tvActionExplorer.SelectedNode = tvActionExplorer.GetNodeAt(e.X, e.Y);

                        if (tvActionExplorer.SelectedNode != null)
                        {
                            initAction(tvActionExplorer.SelectedNode.Name, e);
                        }
                    }
                    catch (Exception ex)
                    {
                        throw ex;
                    }
                }
                else
                {
                    frmDBConnect obj = new frmDBConnect();
                    obj.ShowDialog();
                }

                // Select the clicked node
            }
        }
 public void Start(Control UiElement)
 {
     if (DBAdapter.OraDBCon.Connection.State == DBAdapterEnums.state.connected && DBAdapter.SQLServerDBCon.Connection.State == DBAdapterEnums.state.connected)
     {
         try
         {
             frmActionExplorer.ActionDataSyncMemberData.ActionPropery.SynchronizingObject = this;
             frmActionExplorer.ActionDataSyncMemberData.ActionPropery.UiElement           = UiElement;
             frmActionExplorer.ActionDataSyncMemberData.ActionPropery.Monitor             = delegate() { MonitorChangeAddressDown(); };
             frmActionExplorer.ActionDataSyncMemberData.ActionPropery.DoWork = delegate() { doChangeAddressDown(); };
             frmActionExplorer.ActionDataSyncMemberData.ActionPropery.intiTimer(true, UiElement);
         }
         catch (Exception ex)
         {
             throw ex;
         }
     }
     else
     {
         frmDBConnect obj = new frmDBConnect();
         obj.ShowDialog();
     }
 }
Example #4
0
        private void linkLabel1_Click(object sender, System.EventArgs e)
        {
            frmDBConnect _frmDBConnect = new frmDBConnect();

            _frmDBConnect.ShowDialog();
        }