///// <summary> ///// Warning Message ///// </summary> ///// <param name="sMsg">Treœæ message'a</param> ///// <param name="sTitle">Tytu³ message'a</param> //public PMW(string sMsg, string sTitle) //{ // Xceed.Wpf.Toolkit.MessageBox.Show(sMsg, sTitle, MessageBoxButton.OK, MessageBoxImage.Warning); //} /// <summary> /// Funkcja wyswietlaj¹ca Warning Message /// </summary> /// <param name="sMsg">Treœæ message'a</param> /// <param name="buttons">Przyciski message'a jakie maj¹ siê pojawiæ</param> /// <returns>dialog result</returns> public static MessageBoxResult Show(string sMsg, MessageBoxButton buttons) { InfoWindow wnd = new InfoWindow(sMsg, buttons, MessageBoxImage.Warning); wnd.ShowDialog(); return wnd.Result; }
///// <summary> ///// Info Message ///// </summary> ///// <param name="sMsg">Treœæ message'a</param> ///// <param name="sTitle">Tytu³ message'a</param> //public PMI(string sMsg, string sTitle) //{ // Xceed.Wpf.Toolkit.MessageBox.Show(sMsg, sTitle, MessageBoxButton.OK, MessageBoxImage.Information); //} /// <summary> /// Funkcja wyswietlaj¹ca Info Message /// </summary> /// <param name="sMsg">Treœæ message'a</param> /// <param name="buttons">Przyciski message'a jakie maj¹ siê pojawiæ</param> /// <returns>dialog result</returns> public static MessageBoxResult Show(string sMsg, MessageBoxButton buttons) { InfoWindow wnd = new InfoWindow(sMsg, buttons, MessageBoxImage.Information); wnd.ShowDialog(); return wnd.Result; //return Xceed.Wpf.Toolkit.MessageBox.Show(sMsg, Resources.StringTable.PM_Information, buttons, MessageBoxImage.Information); }