void ReleaseDesignerOutlets()
        {
            if (EntryDate != null)
            {
                EntryDate.Dispose();
                EntryDate = null;
            }

            if (EntryPrice != null)
            {
                EntryPrice.Dispose();
                EntryPrice = null;
            }

            if (EntrySetup != null)
            {
                EntrySetup.Dispose();
                EntrySetup = null;
            }

            if (EntrySize != null)
            {
                EntrySize.Dispose();
                EntrySize = null;
            }

            if (EntryType != null)
            {
                EntryType.Dispose();
                EntryType = null;
            }

            if (ExitDate != null)
            {
                ExitDate.Dispose();
                ExitDate = null;
            }

            if (ExitPrice != null)
            {
                ExitPrice.Dispose();
                ExitPrice = null;
            }

            if (Fees != null)
            {
                Fees.Dispose();
                Fees = null;
            }

            if (ProfitLoss != null)
            {
                ProfitLoss.Dispose();
                ProfitLoss = null;
            }

            if (StopLoss != null)
            {
                StopLoss.Dispose();
                StopLoss = null;
            }

            if (TakeProfit != null)
            {
                TakeProfit.Dispose();
                TakeProfit = null;
            }
        }
예제 #2
0
 public void AssembleDatesTimes()
 {
     Entry = string.Format("{0} {1}", EntryDate.Trim(), EntryTime.Trim());
     Exit  = string.Format("{0} {1}", ExitDate.Trim(), ExitTime.Trim());
 }