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(); } }
internal void RefuseButton_OnPressUp(object sender, EventArgs e) { Button button = (Button)sender; button.CssClass = "RefuseButton"; button.Refresh(); }
internal void StartButton_OnPressDown(object sender, EventArgs e) { Button button = (Button)sender; button.CssClass = "StartButtonPressed"; button.Refresh(); }
internal void FinishButton_OnPressUp(object sender, EventArgs eventArgs) { Button button = (Button)sender; button.CssClass = "TopButton"; button.Refresh(); }
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(); }