Mini Kabibi Habibi
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
namespace DevExpress.XtraGrid.Demos {
public partial class frmInfo : DevExpress.XtraEditors.XtraForm {
private Image aIcon;
#region Ctor
public frmInfo(string[] s, Image img) {
InitializeComponent();
try {
this.label1.Font = this.label4.Font = this.label5.Font = this.label2.Font =
this.label3.Font = this.label14.Font = this.label15.Font = this.label16.Font =
new System.Drawing.Font(DevExpress.Utils.AppearanceObject.DefaultFont, System.Drawing.FontStyle.Bold);
} catch {}
label6.Text = (s[0] == "")?Properties.Resources.NoFilter:s[0];
label7.Text = s[1];
label9.Text = s[2];
label10.Text = s[3];
label11.Text = s[4];
label12.Text = s[5];
label13.Text = s[6];
aIcon = img;
}
#endregion
private void OnPaint(object sender, PaintEventArgs e) {
if(aIcon != null)
e.Graphics.DrawImageUnscaled(aIcon, 10, 10);
}
}
}