private void MainFrame_Load(object sender, EventArgs e)
        {
            // setup clipboard listener
            _listener          = new ClipboardListener();
            _listener.Changed += new EventHandler <ClipboardChangedEventArgs>(_listener_Changed);

            // setup listview sorting
            _compareSorter               = new TypeEntryListViewItemComparer();
            _compareSorter.Order         = SortOrder.Descending;
            _compareSorter.Column        = TypeEntryListViewItemComparer.columnSize;
            lvCompare.ListViewItemSorter = _compareSorter;

            _filteredSorter               = new TypeEntryListViewItemComparer();
            _filteredSorter.Order         = SortOrder.Descending;
            _filteredSorter.Column        = TypeEntryListViewItemComparer.columnSize;
            lvFiltered.ListViewItemSorter = _filteredSorter;

            _filteredEntries = new List <TypeEntry>();

            // automatically get the version from the metadata
            Version appVersion = Assembly.GetExecutingAssembly().GetName().Version;

            if (appVersion.Build == 0)
            {
                Text = $"LeakShell - v{appVersion.Major}.{appVersion.Minor}  ({GetAppBitness()})";
            }
            else
            {
                Text = $"LeakShell - v{appVersion.Major}.{appVersion.Minor}.{appVersion.Build}  ({GetAppBitness()})";
            }
        }
Beispiel #2
0
 public ClipboardMonitorControl(ClipboardListener listener)
 {
     _listener = listener;
 }