Example #1
0
 public NetworkCallController(int numberofdomain, NCCLogs tj)
 {
     myWindow = tj;
     ReadConfig(numberofdomain);
     directory.ReadConfig();
     policy.ReadConfig();
 }
Example #2
0
        public void NewLog(string info, NCCLogs tmp2, string color)
        {
            NCCLogs tmp     = tmp2;
            string  timeNow = DateTime.Now.ToString("h:mm:ss") + "." + DateTime.Now.Millisecond.ToString();
            string  restLog = info;
            string  fullLog = timeNow + " " + restLog;

            tmp.logBox.AppendText(Environment.NewLine);
            ColorLog(tmp.logBox, fullLog, color);
            tmp.logBox.ScrollToEnd();
        }
Example #3
0
        public MainWindow()
        {
            InitializeComponent();
            this.Hide();
            NCCLog1       = new NCCLogs();
            NCCLog1.Title = "NCC 127.0.10.10";
            NCCLog2       = new NCCLogs();
            NCCLog2.Title = "NCC 127.0.10.20";
            NCCLog1.Show();
            NCCLog2.Show();
            NetworkCallController new_nCC = new NetworkCallController(101, NCCLog1);

            new_nCC.ListenForConnections();

            NetworkCallController new_nCC2 = new NetworkCallController(202, NCCLog2);

            new_nCC2.ListenForConnections();
        }
Example #4
0
 public void NewLog(string info, NCCLogs tmp, string color)
 {
     myWindow.Dispatcher.Invoke(() => myWindow.NewLog(info, tmp, color));
 }