void RecentItemsCommand_ExecuteWithArgs(object sender, ExecuteEventHandlerArgs args) { selectedIndex = args.GetInt(CommandId.ToString()); if (selectedIndex != INVALID_INDEX && selectedIndex < postInfo.Count) { WindowCascadeHelper.SetNextOpenedLocation(postEditingSite.FrameWindow.Location); postEditingSite.OpenLocalPost(postInfo[selectedIndex]); } }
private void DraftPostItemsGalleryCommand_Execute(object sender, EventArgs e) { // This is for the gallery commands Command command = (Command)sender; int commandId = (int)command.CommandId; if (commandId >= draftCmdStart && commandId < (draftCmdStart + MaxItems)) { int postIndex = commandId - draftCmdStart; WindowCascadeHelper.SetNextOpenedLocation(postEditingSite.FrameWindow.Location); postEditingSite.OpenLocalPost(postInfo[postIndex]); } }