コード例 #1
0
        public LeftPanelScrin1()
        {
            colorButtons = new List <IColorButton>();
            MainButton   = new BackgroundButton()
            {
                Name = ButtonName.MainButton
            };
            CurrentStatisticButton = new BackgroundButton()
            {
                Name = ButtonName.CurrentStatistic
            };
            CalculatorButton = new BackgroundButton()
            {
                Name = ButtonName.Calculator
            };
            GeneralStatisticsButton = new BackgroundButton()
            {
                Name = ButtonName.GeneralStatistics
            };
            BackTestingButton = new BackgroundButton()
            {
                Name = ButtonName.BackTesting
            };

            colorButtons.Add(MainButton);
            colorButtons.Add(CurrentStatisticButton);
            colorButtons.Add(CalculatorButton);
            colorButtons.Add(GeneralStatisticsButton);
            colorButtons.Add(BackTestingButton);
            InitializeColor();
        }
コード例 #2
0
        void ReleaseDesignerOutlets()
        {
            if (BackgroundButton != null)
            {
                BackgroundButton.Dispose();
                BackgroundButton = null;
            }

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

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

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

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

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

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

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

            if (TitleView != null)
            {
                TitleView.Dispose();
                TitleView = null;
            }
        }
コード例 #3
0
 public RightPanelScrin1()
 {
     configRepository = new TradeConfigRepository();
     BTCUSD_LONG      = new BackgroundButton()
     {
         Name = ButtonName.BTCUSD_LONG
     };
     BTCUSD_SHORT = new BackgroundButton()
     {
         Name = ButtonName.BTCUSD_SHORT
     };
     ETHUSD_SHORT = new BackgroundButton()
     {
         Name = ButtonName.ETHUSD_SHORT
     };
     colorButtons = new List <IColorButton>();
     colorButtons.Add(BTCUSD_LONG);
     colorButtons.Add(BTCUSD_SHORT);
     colorButtons.Add(ETHUSD_SHORT);
     InicializeColor();
 }
コード例 #4
0
        void ReleaseDesignerOutlets()
        {
            if (BackgroundButton != null)
            {
                BackgroundButton.Dispose();
                BackgroundButton = null;
            }

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

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

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

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

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

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

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

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

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