<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Kolory</title>
</head>
<body>
    <form id="form1" runat="server">
    <div style="text-align: center" title="Kolory">
        <asp:Panel ID="Panel1" runat="server" Height="200px" Width="300px" BackColor="Black">
        </asp:Panel>
        <br />
        <asp:TextBox ID="TextBox1" runat="server" Width="100px" OnTextChanged="TextBox1_TextChanged" AutoPostBack="True" CausesValidation="True">0</asp:TextBox>&nbsp;
        <asp:TextBox ID="TextBox2" runat="server" Width="100px" AutoPostBack="True" OnTextChanged="TextBox1_TextChanged" CausesValidation="True">0</asp:TextBox>&nbsp;
        <asp:TextBox ID="TextBox3" runat="server" Width="100px" AutoPostBack="True" OnTextChanged="TextBox1_TextChanged" CausesValidation="True">0</asp:TextBox><br />
        <asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="TextBox1"
            ErrorMessage="Wartość R spoza dopuszczalnego zakresu" MaximumValue="255" MinimumValue="0" Type="Integer"></asp:RangeValidator><br />
        &nbsp;
        <asp:RangeValidator ID="RangeValidator2" runat="server" ControlToValidate="TextBox2"
            ErrorMessage="Wartość G spoza dopuszczalnego zakresu" MaximumValue="255" MinimumValue="0" Type="Integer"></asp:RangeValidator><br />
        &nbsp;
        <asp:RangeValidator ID="RangeValidator3" runat="server" ControlToValidate="TextBox3"
            ErrorMessage="Wartość B spoza dopuszczalnego zakresu" MaximumValue="255" MinimumValue="0" Type="Integer"></asp:RangeValidator>
        <br />
        <br />
        <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Zapisz" />&nbsp;<asp:Button
            ID="Button2" runat="server" OnClick="Button2_Click" Text="Czytaj" /><br />
        <br />
        <asp:Label ID="Label1" runat="server" Text="Kolor nie został jeszcze zapisany"></asp:Label><br />
        <br />
        <asp:Button ID="Button3" runat="server" OnClick="Button3_Click" Text="Analizuj" /><br />
        <br />
        <asp:TextBox ID="TextBox4" runat="server" Height="200px" TextMode="MultiLine" Width="754px"></asp:TextBox></div>
    </form>
</body>
</html>
