/// <summary> /// Pokazuje CarInServiceMessageWindow. /// </summary> private void ShowCarInServiceMessageWindow() { string message = "Wybrany samochód już się znajduje w tym serwisie"; string caption = "Błąd"; MessageBoxButtons buttons = MessageBoxButtons.OK; System.Windows.Forms.DialogResult result; result = LGBSMessageBox.Show(message, caption, buttons); }
/// <summary> /// Pokazuje ShowCarToLoanMessageWindow. /// </summary> private void ShowCarToLoanMessageWindow() { string message = "Czy klient dostał auto zastępcze?"; string caption = "Auto zastępcze"; MessageBoxButtons buttons = MessageBoxButtons.YesNo; System.Windows.Forms.DialogResult result; result = LGBSMessageBox.Show(message, caption, buttons); if (result == System.Windows.Forms.DialogResult.Yes) { GiveClientTempCar(); } }