вToolStripMenuItem_Click (object sender,EventArgs e)
{OpenForm=false; (Form Child in this.MdiChildren)
{(Child is FormDistance)
{= true;
}
} (OpenForm)
{index=0; (int x=0; x lt; this.MdiChildren.Length; x ++)
{(MdiChildren [x] .Name == FormDistance )
{= x;
}
} (MdiChildren [index] .Visible == true)
{. MdiChildren [index] .Activate ();
}
{. MdiChildren [index] .WindowState=FormWindowState.Normal; .MdiChildren [index] .Visible=true;
}
}
{FormDistance=new FormDistance () ;. MdiParent=this; _AddToolStrip () ;. Show ();
}
} void виручкаКондукторовToolStripMenuItem_Click (object sender, EventArgs e)
{OpenForm=false; (Form Child in this.MdiChildren)
{(Child is FormRevenue)
{= true;
}
} (OpenForm)
{index=0; (int x=0; x lt; this.MdiChildren.Length; x ++)
{(MdiChildren [x] .Name == FormRevenue )
{= x;
}
} (MdiChildren [index] .Visible == true)
{. MdiChildren [index] .Activate ();
}
{. MdiChildren [index] .WindowState=FormWindowState.Normal; .MdiChildren [index] .Visible=true;
}
}
{FormRevenue=new FormRevenue () ;. MdiParent=this; _AddToolStrip () ;. Show ();
}
} void отработанноеВремяВодітелейToolStripMenuItem_Click (object sender, EventArgs e)
{OpenForm=false; (Form Child in this.MdiChildren)
{(Child is FormWorkedTime)
{= true;
}
} (OpenForm)
{index=0; (int x=0; x lt; this.MdiChildren.Length; x ++)
{(MdiChildren [x] .Name == FormWorkedTime )
{= x;
}
} (MdiChildren [index] .Visible == true)
{. MdiChildren [index] .Activate ();
}
{. MdiChildren [index] .WindowState=FormWindowState.Normal; .MdiChildren [index] .Visible=true;
}
}
{FormWorkedTime=new FormWorkedTime () ;. MdiParent=this; _AddToolStrip () ;. Show ();
}
} void путівиеЛістиToolStripMenuItem_Click (object sender, EventArgs e)
{OpenForm=false; (Form Child in this.MdiChildren)
{(Child is FormWaySheets)
{= true;
}
} (OpenForm)
{index=0; (int x=0; x lt; this.MdiChildren.Length; x ++)
{(MdiChildren [x] .Name == FormWaySheets )
{= x;
}
} (MdiChildren [index] .Visible == true)
{. MdiChildren [index] .Activate ();
}
{. MdiChildren [index] .WindowState=FormWindowState.Normal; .MdiChildren [index] .Visible=true;
}
}
{FormWaySheets=new FormWaySheets () ;. MdiParent=this; _AddToolStrip () ;. Show ();
}
} void путівойЛістToolStripMenuItem_Click (object sender, EventArgs e)
{OpenForm=false; (Form Child in this.MdiChildren)
{(Child is FormDocument)
{= true;
}
} (OpenForm)
{index=0; (int x=0; x lt; this.MdiChildren.Length; x ++)
{(MdiChildren [x] .Name == FormDocument )
{= x;
}
} (MdiChildren [index] .Visible == true)
{. MdiChildren [index] .Activate ();
}
{. MdiChildren [index] .WindowState=FormWindowState.Normal; .MdiChildren [index] .Visible=true;
}
}
{FormDocument=new FormDocument () ;. MdiParent=this; _AddToolStrip () ;. Show ();
}