Beispiel #1
0
        private void RemoveMRUEntry_Executed(object o, ExecutedRoutedEventArgs e)
        {
            try
            {
                MRUEntryVM cmdParam = o as MRUEntryVM;

                if (cmdParam == null)
                {
                    return;
                }

                if (e != null)
                {
                    e.Handled = true;
                }

                this.RecentFiles.MruList.RemovePinEntry(cmdParam);
            }
            catch (Exception exp)
            {
                logger.ErrorException(exp.Message, exp);
                Edi.Msg.Box.Show(exp, "Unhandled Error", MsgBoxButtons.OK, MsgBoxImage.Error, MsgBoxResult.NoDefaultButton,
                                 App.IssueTrackerLink, App.IssueTrackerLink, App.IssueTrackerText, null, true);
            }
        }
Beispiel #2
0
		public void AddNewEntryIntoMRU(string filePath)
		{
			if (this.MruList.FindMRUEntry(filePath) == null)
			{
				MRUEntryVM e = new MRUEntryVM() { IsPinned = false, PathFileName = filePath };

				this.MruList.AddMRUEntry(e);

				this.RaisePropertyChanged(() => this.MruList);
			}
		}
Beispiel #3
0
        private void RemoveMRUEntry_Executed(object o, ExecutedRoutedEventArgs e)
        {
            MRUEntryVM cmdParam = o as MRUEntryVM;

            if (cmdParam == null)
            {
                return;
            }

            if (e != null)
            {
                e.Handled = true;
            }

            this.RecentFiles.MruList.RemovePinEntry(cmdParam);
        }
Beispiel #4
0
        private void PinCommand_Executed(object o, ExecutedRoutedEventArgs e)
        {
            MRUEntryVM cmdParam = o as MRUEntryVM;

            if (cmdParam == null)
            {
                return;
            }

            if (e != null)
            {
                e.Handled = true;
            }

            this.RecentFiles.MruList.PinUnpinEntry(!cmdParam.IsPinned, cmdParam);
        }