private void PixelPainter_MouseMove(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Left) { CurrPixelTool.Move(e.Location); } }
private void PixelPainter_MouseUp(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Left &&  CurrPixelTool.End(e.Location)) { if (!IsModified && CurrPixelTool.WillModify) { IsModified = true; } } }
private void FillToolButton_Click(object sender, EventArgs e) { if (CurrPixelTool.GetType() != typeof(PixelFill)) { var tool = PixelToolContainer.Instance.GetPixelTool("PixelFill"); if (tool != null) { CurrPixelTool = tool; } } }