private void InitControl() { MaximumSize = Screen.PrimaryScreen.WorkingArea.Size; closeBmp = ResClass.GetResObj("btn_close_normal"); minBmp = ResClass.GetResObj("btn_mini_normal"); maxBmp = ResClass.GetResObj("btn_max_normal"); if (this.WindowState == FormWindowState.Maximized) { maxBmp = ResClass.GetResObj("btn_restore_normal"); } SelectTab = fd_btn.Name; fd_btn.BackgroundImage = ResClass.GetResObj("main_tab_check"); gp_btn.BackgroundImage = nt_btn.BackgroundImage = lt_btn.BackgroundImage = ResClass.GetResObj("main_tab_bkg"); fd_btn.Image = ResClass.GetResObj("MainPanel_ContactMainTabButton_texture"); gp_btn.Image = ResClass.GetResObj("MainPanel_GroupMainTabButton_texture2"); nt_btn.Image = ResClass.GetResObj("WBlog_TabBtn_Normal"); lt_btn.Image = ResClass.GetResObj("MainPanel_RecentMainTabButton_texture2"); userImg.BackgroundImage = ResClass.GetResObj("Padding4Normal"); userImg.Image = ResClass.GetResObj("big1"); qzone16_btn.Image = ResClass.GetResObj("qzone16"); mail_btn.Image = ResClass.GetResObj("mail"); color_Btn.Image = ResClass.GetResObj("colour"); tools_Btn.Image = ResClass.GetResObj("Tools"); message_Btn.Image = ResClass.GetResObj("message"); find_Btn.Image = ResClass.GetResObj("find"); menu_Btn.Image = ResClass.GetResObj("menu_btn_normal"); }
private void btn_MouseDown(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Left) { ((PictureBox)sender).BackgroundImage = ResClass.GetResObj("allbtn_down"); } }
private void LoadSkinList() { for (int i = 0; i < slist.Count; i++) { QQPictureBox pic = new QQPictureBox(); pic.Texts = slist[i]; pic.SizeMode = PictureBoxSizeMode.AutoSize; if (Directory.Exists(slist[i])) { pic.Image = Image.FromFile(slist[i] + "\\preview.png"); } else { pic.Image = ResClass.GetResObj(slist[i]); } if (i < 7) { pic.Left = i * 30 + 10 + i; pic.Top = 45; } else { pic.Left = (i - 7) * 30 + 10 + (i - 7); pic.Top = 87; } pic.MouseEnter += new EventHandler(pic_MouseEnter); pic.MouseLeave += new EventHandler(pic_MouseLeave); pic.MouseClick += new MouseEventHandler(pic_MouseClick); skinPanel.Controls.Add(pic); } }
protected override void OnPaint(PaintEventArgs e) { base.OnPaint(e); g = e.Graphics; Bmp = ResClass.GetResObj("main_png_bkg"); g.DrawImage(Bmp, new Rectangle(0, 0, 5, 121), 5, 5, 5, 121, GraphicsUnit.Pixel); g.DrawImage(Bmp, new Rectangle(5, 0, this.Width - 10, 121), 10, 5, Bmp.Width - 20, 121, GraphicsUnit.Pixel); g.DrawImage(Bmp, new Rectangle(this.Width - 5, 0, 5, 121), Bmp.Width - 10, 5, 5, 121, GraphicsUnit.Pixel); g.DrawImage(Bmp, new Rectangle(0, 121, 2, this.Height - 182), 5, 126, 2, Bmp.Height - 192, GraphicsUnit.Pixel); //g.FillRectangle(Brushes.White, 2, 121, this.Width - 4, this.Height - 182); //g.DrawImage(Bmp, new Rectangle(2, 121, this.Width - 4, this.Height - 182), 7, 126, Bmp.Width - 14, Bmp.Height - 192, GraphicsUnit.Pixel); g.DrawImage(Bmp, new Rectangle(this.Width - 2, 121, 2, this.Height - 182), Bmp.Width - 7, 126, 2, Bmp.Height - 192, GraphicsUnit.Pixel); g.DrawImage(Bmp, new Rectangle(0, this.Height - 61, 5, 61), 5, Bmp.Height - 66, 5, 61, GraphicsUnit.Pixel); g.DrawImage(Bmp, new Rectangle(5, this.Height - 61, this.Width - 10, 61), 10, Bmp.Height - 66, Bmp.Width - 20, 61, GraphicsUnit.Pixel); g.DrawImage(Bmp, new Rectangle(this.Width - 5, this.Height - 61, 5, 61), Bmp.Width - 10, Bmp.Height - 66, 5, 61, GraphicsUnit.Pixel); g.DrawString(this.Text, f, titleColor, 10, 3); g.DrawString(NikeName, new Font(Font.FontFamily, 10F, FontStyle.Bold), titleColor, 90, 34); Bmp = ResClass.GetResObj("main_search_bkg"); g.DrawImage(Bmp, new Rectangle(2, 99, 9, Bmp.Height), 0, 0, 9, Bmp.Height, GraphicsUnit.Pixel); g.DrawImage(Bmp, new Rectangle(11, 99, this.Width - 22, Bmp.Height), 9, 0, Bmp.Width - 18, Bmp.Height, GraphicsUnit.Pixel); g.DrawImage(Bmp, new Rectangle(this.Width - 11, 99, 9, Bmp.Height), Bmp.Width - 9, 0, 9, Bmp.Height, GraphicsUnit.Pixel); }
private void ButtonClose_MouseUp(object sender, MouseEventArgs e) { if (!ButtonClose.IsDisposed) { closeBmp = ResClass.GetResObj("btn_close_normal"); ButtonClose.Invalidate(); } }
private void pic_MouseEnter(object sender, EventArgs e) { Bmp = ResClass.GetResObj("shading_highlight"); g = (sender as QQPictureBox).CreateGraphics(); g.DrawImage(Bmp, new Rectangle(0, 0, 30, 41), 0, 0, 30, 41, GraphicsUnit.Pixel); Bmp.Dispose(); g.Dispose(); }
private void ButtonMax_MouseUp(object sender, MouseEventArgs e) { maxBmp = ResClass.GetResObj("btn_max_normal"); if (this.WindowState == FormWindowState.Maximized) { maxBmp = ResClass.GetResObj("btn_restore_normal"); } ButtonMax.Invalidate(); }
private void ButtonMax_MouseDown(object sender, MouseEventArgs e) { g = ButtonMax.CreateGraphics(); maxBmp = ResClass.GetResObj("btn_max_down"); if (this.WindowState == FormWindowState.Maximized) { maxBmp = ResClass.GetResObj("btn_restore_down"); } g.DrawImage(maxBmp, new Rectangle(0, 0, maxBmp.Width, maxBmp.Height), 0, 0, maxBmp.Width, maxBmp.Height, GraphicsUnit.Pixel); }
private void color_Btn_MouseEnter(object sender, EventArgs e) { if (!skinPanel.Visible) { Bmp = ResClass.GetResObj("allbtn_highlight"); g = color_Btn.CreateGraphics(); g.DrawImage(Bmp, new Rectangle(0, 0, 22, 22), 0, 0, 22, 22, GraphicsUnit.Pixel); Bmp.Dispose(); g.Dispose(); } }
private Bitmap GetImg(string ImgName, int width, int height, int sleft, int stop, int sWidth, int sHeight) { Image srcImg = ResClass.GetPNG(ImgName); Bitmap newImg = new Bitmap(width, height); Graphics graphics = Graphics.FromImage(newImg); graphics.DrawImage(srcImg, new Rectangle(0, 0, width, height), (sleft < 0 ? srcImg.Width + sleft : sleft), (stop < 0 ? srcImg.Height + stop : stop), (sWidth < 0 ? srcImg.Width + sWidth : sWidth), (sHeight < 0 ? srcImg.Height + sHeight : sHeight), GraphicsUnit.Pixel); graphics.Dispose(); srcImg.Dispose(); return(newImg); }
private void con_MouseEnter(object sender, EventArgs e) { Control label = ((Control)sender); g = ((Control)sender).CreateGraphics(); Bmp = ResClass.GetResObj("allbtn_highlight"); g.DrawImage(Bmp, new Rectangle(0, 0, 2, label.Height), 0, 0, 2, Bmp.Height, GraphicsUnit.Pixel); g.DrawImage(Bmp, new Rectangle(2, 0, label.Width - 5, label.Height), 2, 0, Bmp.Width - 5, Bmp.Height, GraphicsUnit.Pixel); g.DrawImage(Bmp, new Rectangle(label.Width - 3, 0, 3, label.Height), Bmp.Width - 3, 0, 3, Bmp.Height, GraphicsUnit.Pixel); Bmp.Dispose(); g.Dispose(); }
private void ButtonMax_MouseEnter(object sender, EventArgs e) { g = ButtonMax.CreateGraphics(); maxBmp = ResClass.GetResObj("btn_max_highlight"); toolTip1.SetToolTip(ButtonMax, "最大化"); if (this.WindowState == FormWindowState.Maximized) { maxBmp = ResClass.GetResObj("btn_restore_highlight"); toolTip1.SetToolTip(ButtonMax, "还原"); } g.DrawImage(maxBmp, new Rectangle(0, 0, maxBmp.Width, maxBmp.Height), 0, 0, maxBmp.Width, maxBmp.Height, GraphicsUnit.Pixel); }
private void ButtonMax_Paint(object sender, PaintEventArgs e) { if (this.MaximizeBox) { g = e.Graphics; maxBmp = ResClass.GetResObj("btn_max_normal"); if (this.WindowState == FormWindowState.Maximized) { maxBmp = ResClass.GetResObj("btn_restore_normal"); } g.DrawImage(maxBmp, new Rectangle(0, 0, maxBmp.Width, maxBmp.Height), 0, 0, maxBmp.Width, maxBmp.Height, GraphicsUnit.Pixel); } }
private void color_Btn_MouseDown(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Left) { g = color_Btn.CreateGraphics(); g.Clear(Color.Transparent); Bmp = ResClass.GetResObj("allbtn_down"); g.DrawImage(Bmp, new Rectangle(0, 0, 22, 22), 0, 0, 22, 22, GraphicsUnit.Pixel); g.DrawImage(color_Btn.Image, new Rectangle(2, 3, 18, 18), 0, 0, 18, 18, GraphicsUnit.Pixel); Bmp.Dispose(); g.Dispose(); } }
private void tab_MouseLeave(object sender, EventArgs e) { PictureBox p = (PictureBox)sender; if (SelectTab == p.Name) { p.BackgroundImage = ResClass.GetResObj("main_tab_check"); } else { p.BackgroundImage = ResClass.GetResObj("main_tab_bkg"); } }
private void tab_Click(object sender, EventArgs e) { PictureBox p = (PictureBox)sender; if (p.Name != SelectTab) { p.BackgroundImage = ResClass.GetResObj("main_tab_check"); (Controls[SelectTab] as PictureBox).BackgroundImage = ResClass.GetResObj("main_tab_bkg"); ChangeTabImg(p.Name, true); ChangeTabImg(SelectTab, false); ShowTab(p.Name); GC.Collect(); } }
private void ChangeTabImg(string name, bool select) { switch (name) { case "fd_btn": if (select) { (Controls[name] as PictureBox).Image = ResClass.GetResObj("MainPanel_ContactMainTabButton_texture"); } else { (Controls[name] as PictureBox).Image = ResClass.GetResObj("MainPanel_ContactMainTabButton_texture2"); } break; case "gp_btn": if (select) { (Controls[name] as PictureBox).Image = ResClass.GetResObj("MainPanel_GroupMainTabButton_texture"); } else { (Controls[name] as PictureBox).Image = ResClass.GetResObj("MainPanel_GroupMainTabButton_texture2"); } break; case "nt_btn": if (select) { (Controls[name] as PictureBox).Image = ResClass.GetResObj("WBlog_TabBtn_Focus"); } else { (Controls[name] as PictureBox).Image = ResClass.GetResObj("WBlog_TabBtn_Normal"); } break; case "lt_btn": if (select) { (Controls[name] as PictureBox).Image = ResClass.GetResObj("MainPanel_RecentMainTabButton_texture"); } else { (Controls[name] as PictureBox).Image = ResClass.GetResObj("MainPanel_RecentMainTabButton_texture2"); } break; } }
public ResClass SteamCalcU_R(int t_s, int t_e, int l, RoomU1994ViewModel d, RoomU1994ViewModel dc, string note) { DT_S = t_s - 15; if ((DT_S >= 35) && (DT_S < 85)) { Q_cU = (d.Q35_RU + ((d.Q85_RU - d.Q35_RU) * (DT_S - 35) / (85 - 35))); } else if ((DT_S >= 85) && (DT_S < 185)) { Q_cU = (d.Q85_RU + ((d.Q185_RU - d.Q85_RU) * (DT_S - 85) / (185 - 85))); } else if ((DT_S >= 185) && (DT_S < 285)) { Q_cU = (d.Q185_RU + ((d.Q285_RU - d.Q185_RU) * (DT_S - 185) / (285 - 185))); } else if ((DT_S >= 285) && (DT_S <= 385)) { Q_cU = (d.Q285_RU + ((d.Q385_RU - d.Q285_RU) * (DT_S - 285) / (385 - 285))); } else if ((DT_S < 10) || (DT_S > 360)) { MessageBox.Show("Разность введенных температур для паропровода не подходит ни под один промежуток. Проверьте введенные данные", "Ошибка ввода данных", MessageBoxButtons.OK); ResClass temp1 = new ResClass { T_S = 0, T_C = 0, L = 0, Ql_S = 0, Qres_S = 0, Q_C = 0, Qres_C = 0, D_S = 0, D_C = 0, Qh_y_S = 0, Qh_y_C = 0, Note = "" }; return(temp1); } if (t_e == 0) { T_c = 0; Q_c = 0; } else { DT_E = t_e - 15; if ((DT_E >= 35) && (DT_E < 85)) { Q_c = (dc.Q35_RU + ((dc.Q85_RU - dc.Q35_RU) * (DT_E - 35) / (85 - 35))); } else if ((DT_E >= 85) && (DT_E < 185)) { Q_c = (dc.Q85_RU + ((dc.Q185_RU - dc.Q85_RU) * (DT_E - 85) / (185 - 85))); } else if ((DT_E >= 185) && (DT_E < 285)) { Q_c = (dc.Q185_RU + ((dc.Q285_RU - dc.Q185_RU) * (DT_E - 185) / (285 - 185))); } else if ((DT_E >= 285) && (DT_E <= 385)) { Q_c = (dc.Q285_RU + ((dc.Q385_RU - dc.Q285_RU) * (DT_E - 285) / (385 - 285))); } else if ((DT_E < 10) || (DT_E > 360)) { MessageBox.Show("Разность введенных температур для конденсатопровода не подходит ни под один промежуток. Проверьте введенные данные", "Ошибка ввода данных", MessageBoxButtons.OK); ResClass temp1 = new ResClass { T_S = 0, T_C = 0, L = 0, Ql_S = 0, Qres_S = 0, Q_C = 0, Qres_C = 0, D_S = 0, D_C = 0, Qh_y_S = 0, Qh_y_C = 0, Note = "" }; return(temp1); } } Qres_s = Q_cU * l; Qres_c = Q_c * l; if (d.D_RU < 150) { Qh_y_s = Qres_s * 1.2 * 3.6; } else { Qh_y_s = Qres_s * 1.15 * 3.6; } if (dc.D_RU < 150) { Qh_y_c = Qres_c * 1.2 * 3.6; } else { Qh_y_c = Qres_c * 1.15 * 3.6; } ResClass temp = new ResClass { T_S = t_s, T_C = T_c, L = l, Ql_S = Q_cU, Qres_S = Qres_s, Q_C = Q_c, Qres_C = Qres_c, D_S = d.D_RU, D_C = dc.D_RU, Qh_y_S = Qh_y_s, Qh_y_C = Qh_y_c, Note = note }; return(temp); }
private void DeleteBtn_Click(object sender, RoutedEventArgs e) { ResClass temp = Res_Grid.SelectedItem as ResClass; BasLogicClass.select = temp; }
private void ButtonMin_MouseLeave(object sender, EventArgs e) { minBmp = ResClass.GetResObj("btn_mini_normal"); ButtonMin.Invalidate(); }
private void ButtonMin_MouseUp(object sender, MouseEventArgs e) { minBmp = ResClass.GetResObj("btn_close_normal"); ButtonMin.Invalidate(); }
private void ButtonMin_MouseDown(object sender, MouseEventArgs e) { minBmp = ResClass.GetResObj("btn_mini_down"); ButtonMin.Invalidate(); }
private void ButtonMin_MouseEnter(object sender, EventArgs e) { minBmp = ResClass.GetResObj("btn_mini_highlight"); toolTip1.SetToolTip(ButtonMin, "最小化"); ButtonMin.Invalidate(); }
private void ButtonClose_MouseEnter(object sender, EventArgs e) { closeBmp = ResClass.GetResObj("btn_close_highlight"); toolTip1.SetToolTip(ButtonClose, "关闭"); ButtonClose.Invalidate(); }
private void ButtonClose_MouseLeave(object sender, EventArgs e) { closeBmp = ResClass.GetResObj("btn_close_normal"); ButtonClose.Invalidate(); }
private void ButtonClose_MouseDown(object sender, MouseEventArgs e) { closeBmp = ResClass.GetResObj("btn_close_down"); ButtonClose.Invalidate(); }
public ResClass SteamCalcM_С(int t_s, int t_e, int l, CanalM1994ViewModel d, CanalM1994ViewModel dc, string note) { DT_S = t_s - 40; if ((DT_S >= 10) && (DT_S < 60)) { Q_cU = (d.Q35_10_CM + ((d.Q85_60_CM - d.Q35_10_CM) * (DT_S - 10) / (60 - 10))); } else if ((DT_S >= 60) && (DT_S < 110)) { Q_cU = (d.Q85_60_CM + ((d.Q185_160_CM - d.Q85_60_CM) * (DT_S - 60) / (110 - 60))); } else if ((DT_S >= 110) && (DT_S < 160)) { Q_cU = (d.Q135_110_CM + ((d.Q185_160_CM - d.Q135_110_CM) * (DT_S - 110) / (160 - 110))); } else if ((DT_S >= 160) && (DT_S < 210)) { Q_cU = (d.Q185_160_CM + ((d.Q235_210_CM - d.Q185_160_CM) * (DT_S - 160) / (210 - 160))); } else if ((DT_S >= 210) && (DT_S < 260)) { Q_cU = (d.Q235_210_CM + ((d.Q285_260_CM - d.Q235_210_CM) * (DT_S - 210) / (260 - 210))); } else if ((DT_S >= 260) && (DT_S < 310)) { Q_cU = (d.Q285_260_CM + ((d.Q335_310_CM - d.Q285_260_CM) * (DT_S - 260) / (335 - 310))); } else if ((DT_S >= 310) && (DT_S <= 360)) { Q_cU = (d.Q335_310_CM + ((d.Q385_360_CM - d.Q335_310_CM) * (DT_S - 310) / (360 - 310))); } else if ((DT_S < 10) || (DT_S > 360)) { MessageBox.Show("Разность введенных температур для паропровода не подходит ни под один промежуток. Проверьте введенные данные", "Ошибка ввода данных", MessageBoxButtons.OK); ResClass temp1 = new ResClass { T_S = 0, T_C = 0, L = 0, Ql_S = 0, Qres_S = 0, Q_C = 0, Qres_C = 0, D_S = 0, D_C = 0, Qh_y_S = 0, Qh_y_C = 0, Note = "" }; return(temp1); } if (t_e == 0) { T_c = 0; Q_c = 0; } else { DT_E = t_e - 40; if ((DT_S >= 10) && (DT_S < 60)) { Q_c = (dc.Q35_10_CM + ((dc.Q85_60_CM - dc.Q35_10_CM) * (DT_S - 10) / (60 - 10))); } else if ((DT_S >= 60) && (DT_S < 110)) { Q_c = (dc.Q85_60_CM + ((dc.Q185_160_CM - dc.Q85_60_CM) * (DT_S - 60) / (110 - 60))); } else if ((DT_S >= 110) && (DT_S < 160)) { Q_c = (dc.Q135_110_CM + ((dc.Q185_160_CM - dc.Q135_110_CM) * (DT_S - 110) / (160 - 110))); } else if ((DT_S >= 160) && (DT_S < 210)) { Q_c = (dc.Q185_160_CM + ((dc.Q235_210_CM - dc.Q185_160_CM) * (DT_S - 160) / (210 - 160))); } else if ((DT_S >= 210) && (DT_S < 260)) { Q_c = (dc.Q235_210_CM + ((dc.Q285_260_CM - dc.Q235_210_CM) * (DT_S - 210) / (260 - 210))); } else if ((DT_S >= 260) && (DT_S < 310)) { Q_c = (dc.Q285_260_CM + ((dc.Q335_310_CM - dc.Q285_260_CM) * (DT_S - 260) / (335 - 310))); } else if ((DT_S >= 310) && (DT_S <= 360)) { Q_c = (dc.Q335_310_CM + ((dc.Q385_360_CM - dc.Q335_310_CM) * (DT_S - 310) / (360 - 310))); } else if ((DT_E < 10) || (DT_E > 360)) { MessageBox.Show("Разность введенных температур для конденсатопровода не подходит ни под один промежуток. Проверьте введенные данные", "Ошибка ввода данных", MessageBoxButtons.OK); ResClass temp1 = new ResClass { T_S = 0, T_C = 0, L = 0, Ql_S = 0, Qres_S = 0, Q_C = 0, Qres_C = 0, D_S = 0, D_C = 0, Qh_y_S = 0, Qh_y_C = 0, Note = "" }; return(temp1); } } Qres_s = Q_cU * l; Qres_c = Q_c * l; if (d.D_CM < 150) { Qh_y_s = Qres_s * 1.2 * 3.6; } else { Qh_y_s = Qres_s * 1.15 * 3.6; } if (dc.D_CM < 150) { Qh_y_c = Qres_c * 1.2 * 3.6; } else { Qh_y_c = Qres_c * 1.15 * 3.6; } ResClass temp = new ResClass { T_S = t_s, T_C = T_c, L = l, Ql_S = Q_cU, Qres_S = Qres_s, Q_C = Q_c, Qres_C = Qres_c, D_S = d.D_CM, D_C = dc.D_CM, Qh_y_S = Qh_y_s, Qh_y_C = Qh_y_c, Note = note }; return(temp); }
private void menu_Btn_MouseLeave(object sender, EventArgs e) { menu_Btn.Image = ResClass.GetPNG("menu_btn_normal"); }
public ResClass SteamCalcM(int t_s, int t_e, int l, SteamM1994ViewModel d, bool check, string note) { DT_S = t_s - t_e; if ((DT_S >= 110) && (DT_S < 145)) { Q_cU = (d.Q110_M + ((d.Q145_M - d.Q110_M) * (DT_S - 110) / (145 - 110))); } else if ((DT_S >= 145) && (DT_S < 195)) { Q_cU = (d.Q145_M + ((d.Q195_M - d.Q145_M) * (DT_S - 145) / (195 - 145))); } else if ((DT_S >= 195) && (DT_S < 245)) { Q_cU = (d.Q195_M + ((d.Q245_M - d.Q195_M) * (DT_S - 195) / (245 - 195))); } else if ((DT_S >= 245) && (DT_S < 295)) { Q_cU = (d.Q245_M + ((d.Q295_M - d.Q245_M) * (DT_S - 245) / (295 - 245))); } else if ((DT_S >= 295) && (DT_S <= 345)) { Q_cU = (d.Q295_M + ((d.Q345_M - d.Q295_M) * (DT_S - 295) / (345 - 295))); } else if ((DT_S < 110) || (DT_S > 345)) { MessageBox.Show("Разность введенных температур для паропровода не подходит ни под один промежуток. Проверьте введенные данные", "Ошибка ввода данных", MessageBoxButtons.OK); ResClass temp1 = new ResClass { T_S = 0, T_C = 0, L = 0, Ql_S = 0, Qres_S = 0, Q_C = 0, Qres_C = 0, D_S = 0, D_C = 0, Qh_y_S = 0, Qh_y_C = 0, Note = "" }; return(temp1); } T_c = (check == true) ? 0 : 100; Q_c = (check == true) ? 0 : d.Qk_M; Qres_s = Q_cU * l; Qres_c = Q_c * l; Qh_y_s = Qres_s * 1.15 * 3.6; Qh_y_c = Qres_c * 1.15 * 3.6; ResClass temp = new ResClass { T_S = t_s, T_C = T_c, L = l, Ql_S = Q_cU, Qres_S = Qres_s, Q_C = Q_c, Qres_C = Qres_c, D_S = d.Dp_M, D_C = d.Dk_M, Qh_y_S = Qh_y_s, Qh_y_C = Qh_y_c, Note = note }; return(temp); }
private void skinPanel_Paint(object sender, PaintEventArgs e) { g = e.Graphics; Bmp = ResClass.GetResObj("ShadingBkg"); g.DrawImage(Bmp, new Rectangle(9, 44, Bmp.Width, Bmp.Height), 0, 0, Bmp.Width, Bmp.Height, GraphicsUnit.Pixel); }