private static void ShowState(SentState sentState) { WPFInformationMessage w = new WPFInformationMessage(sentState.IsOk ? "Успех!" : "Ошибка!", sentState.Message); w.ShowDialog(); }
private static void ShowState(bool isOk, string Message) { WPFInformationMessage w = new WPFInformationMessage(isOk ? "Успех!" : "Ошибка!", Message); w.ShowDialog(); }