private void DoSetUserName(string name) { if (MessageBoxz.ShowQuestion(string.Format("Set Name is {0}?", name))) { this.Name = name; } }
private void Buttonz_Click_1(object sender, RoutedEventArgs e) { var res = MessageBoxz.ShowQuestion("确定退出?"); //MessageBoxz.ShowInfo(res.ToString()); if (res.ToString() == "True") { App.Current.Shutdown(); } else { return; } }
private void FButton_Click_Question(object sender, RoutedEventArgs e) { var res = MessageBoxz.ShowQuestion("你是最帅的嘛?"); MessageBoxz.ShowInfo(res.ToString()); }