private void OnCancelRename(object parameter) { Log.Instance.LogInfo(string.Format("RenameViewModel.OnCancelRename {0}", parameter)); RenameDialog w = parameter as RenameDialog; if (w != null) { w.Close(); } }
private void OnOKRename(object parameter) { Log.Instance.LogInfo(string.Format("RenameViewModel.OnOKRename {0}", parameter)); RenameDialog w = parameter as RenameDialog; if (w != null) { w.Close(); } Log.Instance.LogInfo(string.Format("RenameViewModel - renaming list to {0}", w.textBox1.Text)); RenameAction(w.textBox1.Text); }