/// <summary> /// Converts an enum object to it's string representative. /// </summary> protected string ConvertEnumToString(ActionMessages message) { return(_dictionary.Messages.FirstOrDefault(x => x.Key == (int)message).Value.Replace('_', ' ')); //return test.Value; //return Enum.GetName(typeof(ActionMessages), message); }
private void MetroWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e) { e.Cancel = true; ActionMessages.ExecuteAction("winclose"); }