66 lines
2.1 KiB
C#
66 lines
2.1 KiB
C#
using Kindlebox.Properties;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Resources;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
|
|
namespace Kindlebox
|
|
{
|
|
public partial class RabbitUserControl : UserControl
|
|
{
|
|
|
|
private string _farmName;
|
|
private string _rabbitName;
|
|
private string _color;
|
|
private string _age;
|
|
private string _weight;
|
|
private Guid _rabbitID;
|
|
private Image _image;
|
|
|
|
public RabbitUserControl()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void RabbitUserControl_Load(object sender, EventArgs e)
|
|
{
|
|
_farmName = "Farm Name";
|
|
_rabbitName = "Rabbit Name";
|
|
_color = "Color";
|
|
_age = "0y 0m 0d";
|
|
_weight = "0lbs";
|
|
|
|
Image rabbitImage = (Image)Properties.Resources.ResourceManager.GetObject("rabbit_placeholder");
|
|
|
|
_image = rabbitImage;
|
|
}
|
|
|
|
public string FarmNameText { get { return _farmName; } set { _farmName = value; lblFarmName.Text = _farmName; } }
|
|
public string RabbitNameText { get { return _rabbitName; } set { _rabbitName = value; lblRabbitName.Text = _rabbitName; } }
|
|
public string ColorText { get { return _color; } set { _color = value; lblColor.Text = _color; } }
|
|
public string AgeText { get { return _age; } set { _age = value; lblAge.Text = _age; } }
|
|
public string WeightText { get { return _weight; } set { _weight = value; lblWeight.Text = _weight; } }
|
|
public Guid RabbitIDText { get { return _rabbitID; } set { _rabbitID = value;} }
|
|
public Image RabbitImagePath { get { return _image; } set { _image = value; pictureBox1.Image = _image; } }
|
|
|
|
private void btnView_Click(object sender, EventArgs e)
|
|
{
|
|
ViewRabbit viewRabbit = new ViewRabbit();
|
|
viewRabbit.rabbitID = _rabbitID;
|
|
viewRabbit.Show();
|
|
|
|
}
|
|
|
|
private void RabbitUserControl_Click(object sender, EventArgs e)
|
|
{
|
|
|
|
}
|
|
}
|
|
}
|