Exemplo n.º 1
0
 public void ChangeState()
 {
     df4.ChangeFormState(mainPanel);
     mainPanel    = null;
     newGroupList = null;
     df4          = null;
 }
Exemplo n.º 2
0
        public void ChangeState(out string[][] finalGroups)
        {
            df4.ChangeFormState(mainPanel);
            mainPanel    = null;
            newGroupList = null;
            df4          = null;

            finalGroups = this.finalGroups;
        }
Exemplo n.º 3
0
        public void ClearAndStart(string[][] mainArray, string[][] finalResult)
        {
            Calculation6 c6 = new Calculation6(mainArray, finalResult);

            c6.StartCalculation(out result);

            df4 = new DrawingForm4();
            df4.StartDraw(mainPanel);

            groupCount = new Label
            {
                Location    = new System.Drawing.Point(5 * mainPanel.Width / 12, 0),
                Font        = new System.Drawing.Font("Times New Roman", 36, System.Drawing.FontStyle.Regular),
                ForeColor   = System.Drawing.ColorTranslator.FromHtml("#C4DFE6"),
                BackColor   = System.Drawing.ColorTranslator.FromHtml("#003B46"),
                Size        = new System.Drawing.Size(mainPanel.Width / 6, mainPanel.Height / 10),
                BorderStyle = BorderStyle.None
            };
            groupCount.Enter += GroupCount_Enter;
            mainPanel.Controls.Add(groupCount);

            groupCount.Text      = currentGroup.ToString();
            groupCount.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;

            arrowLeft = new Button
            {
                Location  = new System.Drawing.Point(mainPanel.Width / 4, 0),
                Font      = new System.Drawing.Font("Times New Roman", 24, System.Drawing.FontStyle.Regular),
                ForeColor = System.Drawing.ColorTranslator.FromHtml("#C4DFE6"),
                BackColor = System.Drawing.ColorTranslator.FromHtml("#003B46"),
                Size      = new System.Drawing.Size(mainPanel.Width / 6, mainPanel.Height / 10),
                FlatStyle = FlatStyle.Flat,
                Text      = "←"
            };
            arrowLeft.FlatAppearance.BorderSize = 0;
            arrowLeft.Click += ArrowLeft_Click;
            mainPanel.Controls.Add(arrowLeft);

            arrowRight = new Button
            {
                Location  = new System.Drawing.Point(7 * mainPanel.Width / 12, 0),
                Font      = new System.Drawing.Font("Times New Roman", 24, System.Drawing.FontStyle.Regular),
                ForeColor = System.Drawing.ColorTranslator.FromHtml("#C4DFE6"),
                BackColor = System.Drawing.ColorTranslator.FromHtml("#003B46"),
                Size      = new System.Drawing.Size(mainPanel.Width / 6, mainPanel.Height / 10),
                FlatStyle = FlatStyle.Flat,
                Text      = "→"
            };
            arrowRight.FlatAppearance.BorderSize = 0;
            arrowRight.Click += ArrowRight_Click;
            mainPanel.Controls.Add(arrowRight);

            GroupsOutput();
        }
Exemplo n.º 4
0
        public void ClearAndStart(string[][][] MGroup)
        {
            Calculation5 c5 = new Calculation5(MGroup);

            c5.StartCalculation(out finalGroups);

            df4 = new DrawingForm4();
            df4.StartDraw(mainPanel);

            GroupsOutput();
        }
Exemplo n.º 5
0
 public void ChangeState()
 {
     df4.ChangeFormState(mainPanel);
     arrowLeft.Click -= ArrowLeft_Click;
     mainPanel.Controls.Remove(arrowLeft);
     arrowRight.Click -= ArrowRight_Click;
     mainPanel.Controls.Remove(arrowRight);
     groupCount.Enter -= GroupCount_Enter;
     mainPanel.Controls.Remove(groupCount);
     mainPanel    = null;
     arrowLeft    = null;
     arrowRight   = null;
     groupCount   = null;
     groupCount   = null;
     newGroupList = null;
     df4          = null;
 }