public MainForm()
        {
            InitializeComponent();

            Application.EnableVisualStyles();

            this.SetStyle(
                ControlStyles.AllPaintingInWmPaint |
                ControlStyles.UserPaint |
                ControlStyles.DoubleBuffer, true);

            serialParityCmBx.SelectedIndex   = 0;
            serialStopBitsCmBx.SelectedIndex = 1;
            serialBaudCmBx.SelectedIndex     = 0;
            UpdateSerialPorts();

            formatCmBx.SelectedIndex     = 0;
            lineEndingCmBx.SelectedIndex = 0;

            LoadSerialSettigns();
            LoadTcpSettings();
            LoadUdpSettings();
            LoadGlobalSettings();

            searcher = new TxtBoxSearch(ref displayTxt);

            string selectedTxtFormat = formatCmBx.GetItemText(formatCmBx.SelectedItem);

            txtFormat = StringToTextFormatType(selectedTxtFormat);

            string selectedLineEnding = lineEndingCmBx.GetItemText(lineEndingCmBx.SelectedItem);

            lineEnding = StringToLineEndingType(selectedLineEnding);
        }
Exemple #2
0
 /// <summary>
 /// Show all the rows of the table
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void BtnAll_Click(object sender, EventArgs e)
 {
     // Empty the search box, so all the rows show
     TxtBoxSearch.Clear();
 }