Exemplo n.º 1
0
        public void choosePenTest()
        {
            BMPLogic logic = new BMPLogic(200, 200);

            logic.choosePen();
            Assert.Equal(DrawingItem.Pen, logic.GetDrawingItem());
        }
Exemplo n.º 2
0
 /// <summary>
 /// Обработка выбора пера
 /// </summary>
 /// <param name="sender">Отправитель</param>
 /// <param name="e">Параметры</param>/// <param name="sender"></param>
 private void penBox_MouseUp(object sender, MouseEventArgs e)
 {
     penBox.Image = imageList1.Images[3];
     logic.choosePen();
     brushBox.Image  = imageList1.Images[0];
     eraserBox.Image = imageList1.Images[12];
 }