コード例 #1
0
 // Gan cac gia tri cho m_Shape
 private void Gan(CShape shape)
 {
     shape.SetDrawMode(GDI.R2_NOTXORPEN);
     shape.SetWidth(int.Parse(tcmbWidth.SelectedItem.ToString()));
     shape.SetPenStyle(Chon(tcmbPenStyle.SelectedItem.ToString()));
     shape.SetColor(_RGB(m_R, m_G, m_B));
 }
コード例 #2
0
 private void tButPolygon_Click(object sender, EventArgs e)
 {
     UnChecked();
     tButPolygon.Checked = true;
     Xoa();
     flag    = false;
     m_Shape = new CPolygon();
     m_Shape.SetWidth(int.Parse(tcmbWidth.SelectedItem.ToString()));
     m_Shape.SetPenStyle(Chon(tcmbPenStyle.SelectedItem.ToString()));
     m_Shape.SetColor(_RGB(m_R, m_G, m_B));
 }