private void LaunchChildWindow(ArrayList interlockingOldPointer, ArrayList interlockingNewPointer, int oldIndex, int newIndex, float scaleF, string drawMde, Font drawFt, string name) { frmMChild objfrmMChild = new frmMChild(interlockingOldPointer, interlockingNewPointer, timersOld, timersNew, oldIndex, newIndex, scaleF, drawMde, drawFnt, highlightName, false, true, Color.Blue, Color.Red); objfrmMChild.Size = new Size(objfrmMChild.RecommendedWidthofWindow(newIndex - 1), objfrmMChild.RecommendedHeightofWindow(newIndex - 1)); //objfrmMChild.Size = new Size(500, 300); objfrmMChild.Text = name; objfrmMChild.MdiParent = this.MdiParent; objfrmMChild.Show(); }
private void ShowRungWindow() { //rungName = GetRungName(treeView.Nodes[treeView.SelectedNode.Index].ToString()); int newIndex = findRung(interlockingNew, rungNameNew); int oldIndex = findRung(interlockingOld, rungNameOld); { frmMChild objfrmMChild = new frmMChild(interlockingOld, interlockingNew, timersOld, timersNew, oldIndex - 1, newIndex - 1, 0.75F, "Normal", drawFnt, "", true, true, Color.Blue, Color.Red); objfrmMChild.Size = new Size(objfrmMChild.RecommendedWidthofWindow(newIndex - 1), objfrmMChild.RecommendedHeightofWindow(newIndex - 1)); objfrmMChild.Location = new System.Drawing.Point(1, 1); objfrmMChild.Text = rungNameOld + " vs " + rungNameNew; objfrmMChild.MdiParent = this.MdiParent; objfrmMChild.Show(); } }
private void ShowRungWindow() { int newIndex = findRung(interlockingNew, rungName); int oldIndex = findRung(interlockingOld, rungName); if (newIndex == -1) { if (oldIndex != -1) { frmMChild objfrmMChild = new frmMChild(interlockingOld, interlockingNew, timersOld, timersNew, oldIndex - 1, oldIndex - 1, 0.75F, "All Old", drawFnt, "", true, true, Color.Blue, Color.Red); objfrmMChild.Size = new Size(objfrmMChild.RecommendedWidthofWindow(oldIndex - 1), objfrmMChild.RecommendedHeightofWindow(oldIndex - 1)); objfrmMChild.Location = new System.Drawing.Point(1, 1); objfrmMChild.Text = rungName; objfrmMChild.MdiParent = this.MdiParent; objfrmMChild.Show(); } } else { if (oldIndex == -1) { frmMChild objfrmMChild = new frmMChild(interlockingOld, interlockingNew, timersOld, timersNew, newIndex - 1, newIndex - 1, 0.75F, "All New", drawFnt, "", true, true, Color.Blue, Color.Red); objfrmMChild.Size = new Size(objfrmMChild.RecommendedWidthofWindow(newIndex - 1), objfrmMChild.RecommendedHeightofWindow(newIndex - 1)); objfrmMChild.Location = new System.Drawing.Point(1, 1); objfrmMChild.Text = rungName; objfrmMChild.MdiParent = this.MdiParent; objfrmMChild.Show(); } else { frmMChild objfrmMChild = new frmMChild(interlockingOld, interlockingNew, timersOld, timersNew, oldIndex - 1, newIndex - 1, 0.75F, "Normal", drawFnt, "", true, true, Color.Blue, Color.Red); objfrmMChild.Size = new Size(700, 400); objfrmMChild.Location = new System.Drawing.Point(1, 1); objfrmMChild.Text = rungName; objfrmMChild.MdiParent = this.MdiParent; objfrmMChild.Show(); } } }