Пример #1
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="chb"></param>
 /// <param name="r"></param>
 /// <param name="s"></param>
 /// <param name="l"></param>
 public Writer(CharacterBuffer chb, Random r, string s, Label l)
 {
     rnd           = r;
     buffer        = chb;
     stringToWrite = s;
     sync          = false;
     displayResult = l;
 }
Пример #2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="chb"></param>
 /// <param name="r"></param>
 /// <param name="cnt"></param>
 /// <param name="l"></param>
 public Reader(CharacterBuffer chb, Random r, int cnt, Label l)
 {
     rnd           = r;
     buffer        = chb;
     count         = cnt;
     stringToFill  = string.Empty;
     sync          = false;
     displayResult = l;
 }
Пример #3
0
        /// <summary>
        /// Constructor
        /// </summary>
        public Form1()
        {
            InitializeComponent();

            buffer = new CharacterBuffer(listBoxWrite, listBoxRead);
            rnd    = new Random();
            TransmittedString.Text = " ";
            RecivedString.Text     = " ";
            syncMode.Text          = " ";
        }