예제 #1
0
 private void ChangeCssAndText_OnClick(object sender, EventArgs e)
 {
     if (_cssButton.CssClass == "CssButton")
     {
         _cssButton.CssClass = "ChangeCssButton";
         _cssButton.Text     = "ChangeCss";
         _cssButton.Refresh();
     }
     else if (_cssButton.CssClass == "ChangeCssButton")
     {
         _cssButton.CssClass = "CssButton";
         _cssButton.Text     = "CssButton";
         _cssButton.Refresh();
     }
 }
예제 #2
0
        internal void RefuseButton_OnPressUp(object sender, EventArgs e)
        {
            Button button = (Button)sender;

            button.CssClass = "RefuseButton";
            button.Refresh();
        }
예제 #3
0
        internal void StartButton_OnPressDown(object sender, EventArgs e)
        {
            Button button = (Button)sender;

            button.CssClass = "StartButtonPressed";
            button.Refresh();
        }
예제 #4
0
        internal void FinishButton_OnPressUp(object sender, EventArgs eventArgs)
        {
            Button button = (Button)sender;

            button.CssClass = "TopButton";
            button.Refresh();
        }
예제 #5
0
 private void ChangeLayoutToStartedEvent()
 {
     _startButton.CssClass = "NoHeight";
     _startButton.Visible  = false;
     _startButton.Refresh();
     _refuseButton.CssClass = "NoHeight";
     _refuseButton.Visible  = false;
     _refuseButton.Refresh();
     _startFinishButton.CssClass = "FinishButton";
     _startFinishButton.Refresh();
     _statusImage.Source = GetStatusPicture((string)_currentEventRecordset["ImportanceName"], "InWork");
     _rootLayout.Refresh();
     Event_OnStart();
 }