public void SetControlProperties(Control control) { if (control == null) { return; } for (int iprop = 0; iprop < properties.Count; iprop++) { SkinElementPropertyInfo propInfo = (SkinElementPropertyInfo)properties[iprop]; if (propInfo == null) { continue; } string propName = propInfo.name; Control propControl = control; int idx = -1; if ((idx = propInfo.name.LastIndexOf(".")) != -1) { propControl = ResizableSkinController.GetNamedControl(control, propName.Substring(0, idx)); propName = propName.Substring(idx + 1, propName.Length - idx - 1); } // if (propControl != null) { SetProperty(propControl, propName, propInfo.value); } } }
public SkinPanel() { skinController = new ResizableSkinController(this); SetStyle(ControlStyles.UserPaint, true); SetStyle(ControlStyles.DoubleBuffer, true); SetStyle(ControlStyles.AllPaintingInWmPaint, true); }
public seRadioButton() { // This call is required by the Windows.Forms Form Designer. InitializeComponent(); skinController = new ResizableSkinController(this); UpdateSkin(); // TODO: Add any initialization after the InitializeComponent call }
public SkinEdit() { // This call is required by the Windows.Forms Form Designer. InitializeComponent(); // TODO: Add any initialization after the InitializeComponent call CheckLayout(); // skinController = new ResizableSkinController(this); UpdateSkin(); }
//bool NeedValidationAfterKeyPress=false; public SkinNumeric() { // This call is required by the Windows.Forms Form Designer. InitializeComponent(); // TODO: Add any initialization after the InitializeComponent call skinController = new ResizableSkinController(this); UpdateSkin(); CheckLayout(); this.Leave += new EventHandler(SkinNumeric_Leave); }
public BaseDialog() { // // Required for Windows Form Designer support // InitializeComponent(); skinController = new ResizableSkinController(this); SkinFile = SkinSettings.SkinDirectory + SkinSettings.BaseFormSkinFilename; // // TODO: Add any constructor code after InitializeComponent call // Type type = this.GetType(); Assembly assembly = Assembly.GetAssembly(type); string iconsPath = "FlashGenie.res."; Stream stream = null; #if QVIZ_VERSION stream = assembly.GetManifestResourceStream(iconsPath + "QuickViz.ico"); #else stream = assembly.GetManifestResourceStream(iconsPath + "FlashGenie.ico"); #endif if (stream != null) { this.Icon = new Icon(stream); } TitlePanel.Paint += new PaintEventHandler(TitlePanel_Paint); // mtitleBarHeight = TitlePanel.Height; mstatusBarHeight = 27; //StatusPanel.Height; // StatusBar = true; Resizable = true; StatusPanel.Visible = StatusBar; btnMaximize.Visible = MaximizeBox; btnNormal.Visible = false; btnMinimize.Visible = MinimizeBox; OnResizableChanged(); CheckLayout(); SetStyle(ControlStyles.UserPaint, true); SetStyle(ControlStyles.DoubleBuffer, true); SetStyle(ControlStyles.AllPaintingInWmPaint, true); CorrectWindowStyles(); }
public SkinnedResizableComboBox() { skinController = new ResizableSkinController(this); this.VisibleChanged += new EventHandler(SkinnedResizableComboBox_VisibleChanged); }