Exemplo n.º 1
0
 private void ClearFilterClicked(object sender, ControlHandlerEventArgs e)
 {
     if (this.textBox.TextLength > 0)
     {
         this.textBox.Text = string.Empty;
     }
 }
Exemplo n.º 2
0
        void sidePanel_ControlClicked(object sender, ControlHandlerEventArgs e)
        {
            ControlDefinition def = e.Definition;

            if (def.Label == "View Events" && viewState != ViewState.Events)
            {
                viewState = ViewState.Events;
                this.splitContainer.Panel2.Controls.Clear();
                this.splitContainer.Panel2.Controls.Add(rfidDataGrid);

                this.splitContainer.Invalidate();
            }
            else if (def.Label == "View Errors" && viewState != ViewState.Errors)
            {
                viewState = ViewState.Errors;
                this.splitContainer.Panel2.Controls.Clear();
                this.splitContainer.Panel2.Controls.Add(rfidErrorDataGrid);

                this.splitContainer.Invalidate();
            }
        }