예제 #1
0
파일: MainForm.cs 프로젝트: killvxk/OSPE
        private int _searchLastFound = -1; // Ultimo index del item encontrado

        public MainForm()
        {
            InitializeComponent();
            _captures = new List <CaptureRecord>();
            notifyIcon.ContextMenuStrip = trayMenuStrip;

            // Load settings
            if (!Settings.FormSize.IsEmpty)
            {
                StartPosition = FormStartPosition.Manual;
                Location      = Settings.FormLocation;
                Size          = Settings.FormSize;

                if (Settings.FormState == FormWindowState.Maximized)
                {
                    WindowState = FormWindowState.Maximized;
                }

                if (Settings.LogOpened)
                {
                    LogForm.Show();
                }

                Output.LogEnabled = Settings.LogEnabled;

                _isViewAsHexOn  = Settings.ViewAsHex;
                _isAutoScrollOn = Settings.AutoScroll;
                splitContainerTabsAndHex.SplitterDistance  = Settings.SpliterDistanceTabsAndHex;
                splitFilterAndConversions.SplitterDistance = Settings.SpliterDistanceFilterAndConversions;
            }

            InitListViews();

            Resize += OnResize;
            Closed += frmMainClosed;

            FilterManager.LoadTempFilterList();
            LoadFilterItems();
            LoadSendListItems();
            LoadHotKeys();
            UpdateControls();
        }
예제 #2
0
파일: MainForm.cs 프로젝트: killvxk/OSPE
 private void tsmiViewLog_Click(object sender, EventArgs e)
 {
     LogForm.Show();
 }