Практикум прикладного программирования на C# в среде VS.NET 2005 - ответы
Количество вопросов - 536
device.Transform.View = Matrix.LookAtLH( new Vector3(0, 0, 15.0F), new Vector3(), new Vector3(0, 1, 0));В приведенном коде, осуществляется:
...?lt;form id="form1"><br /> <samp id="sampID">Текстовая метка по умолчанию</samp> <br /> <br /> <input id="Message1" type="button" value="Текст1" onserverclick="Message1_ServerClick"> <input id="Message2" type="button" value="Текст2" onserverclick="Message2_ServerClick"></form>...
<input type="image" id="IMG1" src="https://intuit.ru/Images/Button1.png" runat="server" />
PresentParameters presentParams = new PresentParameters();
protected override void DoPage(Graphics graphics, Color color, int cx, int cy) { const int iNumRevs = 10; int iNumPoints = iNumRevs * 2 * (cx + cy); PointF[] apointf = new PointF[iNumPoints]; double rAngle, rScale; for(int i = 0; i < iNumPoints; i++) { rAngle = iNumRevs * i * 2 * Math.PI / iNumPoints; rScale = 1 - i / Convert.ToDouble(iNumPoints); apointf[i].X = (float)(Convert.ToDouble(cx) / 2 * (1 + rScale * Math.Cos(rAngle))); apointf[i].Y = (float)(Convert.ToDouble(cy) / 2 * (1 + rScale * Math.Sin(rAngle))); } graphics.DrawLines(new Pen(color), apointf); }
public override object ConvertFrom(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value) {string sourceStr = value as System.String;if (sourceStr == ""){ return new SomeObject();}else{ char[] separator ={ ';' }; string[] PropStrings = sourceStr.Split(separator); if (PropStrings.Length != 2) throw new ArgumentException( "Требуется формат: два значения с разделителем ';'"); SomeObject obj = new SomeObject(); obj.Prop1 = Convert.ToInt32(PropStrings[0].Trim()); obj.Prop2 = PropStrings[1].Trim(); return obj;} }Что выполняет, приведенный выше, код?
private void generalList_SelectedIndexChanged(object sender, System.EventArgs e) { switch(generalList.SelectedIndex + 1) { case 1: Smiles frm1 = new Smiles(); frm1.ShowDialog(); break; } }Какая строка, из приведенного выше кода, открывает дочерние формы в модальном режиме?
<frameset rows="*,*,*"> <frameset cols="50%,*"> <frame src="https://intuit.ru/Doc1.htm" name="Frame1" scrolling="no" noresize> <frame src="https://intuit.ru/Doc2.htm" name="Frame2" scrolling="auto"> </frameset> <frameset cols="*"> <frameset rows="*,*,*"> <frame src="https://intuit.ru/Doc3.htm" name="Frame1" scrolling="no" noresize> <frame src="https://intuit.ru/Doc4.htm" name="Frame2" scrolling="auto"> <frame src="https://intuit.ru/Doc5.htm" name="Frame3" scrolling="auto"> </frameset> </frameset>
protected override void DoPage(Graphics graphics, Color color, int cx, int cy) { Point[] apoint = { new Point(cx / 4, 3 * cy / 4), new Point(cx / 4, cy / 2), new Point(cx / 2, cy / 4), new Point(3 * cx / 4, cy / 2), new Point(3 * cx / 4, 3 * cy / 4), new Point(cx / 4, cy / 2), new Point(3 * cx / 4, cy / 2), new Point(cx / 4, 3 * cy / 4), new Point(3 * cx / 4, 3 * cy / 4), }; graphics.DrawLines(new Pen(color), apoint); }
private void TextBoxOnTextChanged(object sender, EventArgs e) { }Приведенное выше событие применяют при:
private void OrderDetail_Click(object sender, System.EventArgs e) { Child child = new Child(); child.Show(); }
device = new Device(0, DeviceType.Hardware, this, CreateFlags.SoftwareVertexProcessing, presentParams);
protected override void DoPage(Graphics graphics, Color color, int cx, int cy) { graphics.DrawEllipse(Pens.Red, 0, 0, cx - 1, cy - 1); }
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) { if (sourceType == typeof(System.String)) return true; else return base.CanConvertFrom(context, sourceType); }Что выполняет, приведенный выше, код?
private void TextBoxOnKeyDown(object sender, KeyEventArgs e) { }Приведенное выше событие применяют при:
<h3 style="color:blue; text-align:bottom">В приведенном выше примере списком определения стиля является:
<frameset rows="*,*"> <frameset cols="*,*"> <frame src="https://intuit.ru/Doc1.htm" name="Frame1" scrolling="no" noresize> </frameset> <frameset cols="50%,*,*,*"> <frameset rows="*,*,*,*"> <frame src="https://intuit.ru/Doc2.htm" name="Frame2" scrolling="auto"> <frame src="https://intuit.ru/Doc3.htm" name="Frame1" scrolling="no" noresize> <frame src="https://intuit.ru/Doc4.htm" name="Frame2" scrolling="auto"> <frame src="https://intuit.ru/Doc5.htm" name="Frame3" scrolling="auto"> </frameset> </frameset>
public override object ConvertTo(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType) {SomeObject obj = (SomeObject)value;return obj.Prop1.ToString() + "; " + obj.Prop2; }Что выполняет, приведенный выше, код?
<frameset rows="*,*,*"> <frameset cols="50%,*"> <frame src="https://intuit.ru/Doc1.htm" name="Frame1" scrolling="no" noresize> <frame src="https://intuit.ru/Doc2.htm" name="Frame2" scrolling="auto"> </frameset> <frameset cols="*,*,*"> <frame src="https://intuit.ru/Doc3.htm" name="Frame1" scrolling="no" noresize> <frame src="https://intuit.ru/Doc4.htm" name="Frame2" scrolling="auto"> <frame src="https://intuit.ru/Doc5.htm" name="Frame3" scrolling="auto"> </frameset></frameset>