public void ChangeState() { df4.ChangeFormState(mainPanel); mainPanel = null; newGroupList = null; df4 = null; }
public void ChangeState(out string[][] finalGroups) { df4.ChangeFormState(mainPanel); mainPanel = null; newGroupList = null; df4 = null; finalGroups = this.finalGroups; }
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(); }
public void ClearAndStart(string[][][] MGroup) { Calculation5 c5 = new Calculation5(MGroup); c5.StartCalculation(out finalGroups); df4 = new DrawingForm4(); df4.StartDraw(mainPanel); GroupsOutput(); }
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; }