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

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

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

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

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

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

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

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

            if (PriceLabel != null)
            {
                PriceLabel.Dispose();
                PriceLabel = null;
            }
        }
Example #2
0
        void ReleaseDesignerOutlets()
        {
            if (AddressLabel != null)
            {
                AddressLabel.Dispose();
                AddressLabel = null;
            }

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

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

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

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

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

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

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

            if (TitleLabel != null)
            {
                TitleLabel.Dispose();
                TitleLabel = null;
            }
        }
 public DefaultRunnerScreen(AlgRunner runner, Action callback = null)
 {
     Runner = runner;
     Runner.GetCube().SetUpPosition(Runner.GetCurrentPosNum());
     InitializeComponent();
     AlgLabel.Text    = Runner.GetAlgClient().GetAlg(Runner.GetCurrentPosNum());
     NumberLabel.Text = Runner.GetCurrentPosNum().ToString();
     StartPosition    = FormStartPosition.CenterScreen;
     AlgLabel.Hide();
     NumberLabel.Hide();
     HelpLabel.Text = helpLabels[0];
     _spacePressed  = DateTime.Now;
     _callback      = callback;
 }
        void ReleaseDesignerOutlets()
        {
            if (NumberLabel != null)
            {
                NumberLabel.Dispose();
                NumberLabel = null;
            }

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

            if (TitleLabel != null)
            {
                TitleLabel.Dispose();
                TitleLabel = null;
            }
        }
Example #5
0
        protected void SetupDragAndDrop()
        {
            NumberLabel.UserInteractionEnabled      = true;
            EvenNumbersLabel.UserInteractionEnabled = true;
            OddNumbersLabel.UserInteractionEnabled  = true;

            var numberDragInteraction = new UIDragInteraction(this);

            NumberLabel.AddInteraction(numberDragInteraction);

            // On iPad, this defaults to true. On iPhone, this defaults to
            // false. Since this app should work on the iPhone, enable the the
            // drag interaction.
            numberDragInteraction.Enabled = true;

            evenDropInteraction = new UIDropInteraction(this);
            EvenNumbersLabel.AddInteraction(evenDropInteraction);
            oddDropInteraction = new UIDropInteraction(this);
            OddNumbersLabel.AddInteraction(oddDropInteraction);
        }
        void ReleaseDesignerOutlets()
        {
            if (EvenNumbersLabel != null)
            {
                EvenNumbersLabel.Dispose();
                EvenNumbersLabel = null;
            }

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

            if (OddNumbersLabel != null)
            {
                OddNumbersLabel.Dispose();
                OddNumbersLabel = null;
            }
        }
Example #7
0
        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            label3.Text = comboBox1.Text;
            if (comboBox1.Text == "Statics")
            {
                label4.Hide();
                label5.Hide();
                XaxiscomboBox.Hide();
                YaxiscomboBox.Hide();
                textBox1.Show();
                NumberLabel.Show();
                numBox.Hide();
                rangeBox.Hide();
                label6.Hide();
                label7.Hide();
                label8.Hide();
                label9.Hide();
                label10.Hide();
                xvalueBox.Hide();
                powerBox.Hide();
                comboBox2.Hide();
                label11.Hide();
            }
            else if (comboBox1.Text == "Peak")
            {
                label4.Show();
                label5.Show();
                XaxiscomboBox.Show();
                YaxiscomboBox.Show();
                textBox1.Hide();
                NumberLabel.Hide();
                numBox.Show();
                rangeBox.Show();
                label7.Show();
                label8.Show();
                label9.Hide();
                label10.Hide();
                xvalueBox.Hide();
                powerBox.Hide();
                comboBox2.Hide();
                label11.Hide();
            }
            else if (comboBox1.Text == "Two Peaks")
            {
                label4.Show();
                label5.Show();
                XaxiscomboBox.Show();
                YaxiscomboBox.Show();
                textBox1.Hide();
                NumberLabel.Hide();
                numBox.Show();
                rangeBox.Show();
                label7.Show();
                label8.Show();
                label9.Hide();
                label10.Hide();
                xvalueBox.Hide();
                powerBox.Hide();
                comboBox2.Hide();
                label11.Hide();
            }
            else if (comboBox1.Text == "Polynomial Fit")
            {
                label4.Show();
                label5.Show();
                XaxiscomboBox.Show();
                YaxiscomboBox.Show();
                textBox1.Hide();
                NumberLabel.Hide();
                numBox.Hide();
                rangeBox.Hide();
                label7.Hide();
                label8.Hide();
                label9.Show();
                label10.Show();
                xvalueBox.Show();
                powerBox.Show();
                comboBox2.Hide();
                label11.Hide();
            }
            else if (comboBox1.Text == "Normal Distribution Fit")
            {
                label4.Show();
                label5.Show();
                XaxiscomboBox.Show();
                YaxiscomboBox.Show();
                textBox1.Hide();
                NumberLabel.Hide();
                numBox.Hide();
                rangeBox.Hide();
                label7.Hide();
                label8.Hide();
                label9.Hide();
                label10.Show();
                xvalueBox.Show();
                powerBox.Hide();
                comboBox2.Hide();
                label11.Hide();
            }
            else if (comboBox1.Text == "Logistic Regression")
            {
                label4.Show();
                label5.Show();
                XaxiscomboBox.Show();
                YaxiscomboBox.Show();
                textBox1.Hide();
                NumberLabel.Hide();
                numBox.Hide();
                rangeBox.Show();
                label6.Hide();
                label7.Hide();
                label8.Show();
                label9.Show();
                label10.Show();
                xvalueBox.Show();
                powerBox.Show();
                comboBox2.Show();
                label11.Show();
                label4.Hide();
                label5.Hide();
                XaxiscomboBox.Hide();
                YaxiscomboBox.Hide();
            }

            if (comboBox1.Text == "Peak" || comboBox1.Text == "Two Peaks" || comboBox1.Text == "Polynomial Fit" || comboBox1.Text == "Normal Distribution Fit")
            {
                if (YaxiscomboBox.Text.Contains("#"))
                {
                    XaxiscomboBox.Hide();
                    label6.Show();
                }
                else
                {
                    label6.Hide();
                    XaxiscomboBox.Show();
                }
            }
            peak1Box.Hide();
            peak2Box.Hide();
            label13.Hide();
            label12.Hide();
        }