Esempio n. 1
0
 public void AddLogMessage(string message)
 {
     Util.Invoke(LogTextBox, () => LogTextBox.AppendText(message + "\r\n"));
 }
Esempio n. 2
0
        public GingerCoreNETWindow()
        {
            InitializeComponent();

            mSolutionRepository = WorkSpace.Instance.SolutionRepository;
            LogTextBox.Clear();
            ElapsedLabel.Visibility = Visibility.Collapsed;
            MemKBLabel.Visibility   = Visibility.Collapsed;

            Actions.Add(new MyAction()
            {
                Name = "Report.Error", Action = () => ReporterError()
            });
            Actions.Add(new MyAction()
            {
                Name = "Get all Files", Action = () => GetAllFiles()
            });
            Actions.Add(new MyAction()
            {
                Name = "Get All BFs", Action = () => GetBFs()
            });
            Actions.Add(new MyAction()
            {
                Name = "Get All BFs + keep refs", Action = () => GetBFsKeepRef()
            });
            Actions.Add(new MyAction()
            {
                Name = "Get All BFs and Drill down", Action = () => GetAllBFsandDrilldown()
            });
            Actions.Add(new MyAction()
            {
                Name = "Get All BFs and Save", Action = () => GetAllBFsandSave()
            });
            Actions.Add(new MyAction()
            {
                Name = "Get All BFs and Copy", Action = () => GetBFsAndCopy()
            });
            Actions.Add(new MyAction()
            {
                Name = "Create 100 Big BFs", Action = () => Create100BigBFs()
            });
            Actions.Add(new MyAction()
            {
                Name = "Clear Business Flows Cache", Action = () => ClearBusinessFlowsCache()
            });
            Actions.Add(new MyAction()
            {
                Name = "GetEnvironments", Action = () => GetEnvironments()
            });
            Actions.Add(new MyAction()
            {
                Name = "Start Ginger Grid", Action = () => StartGingerGrid()
            });
            Actions.Add(new MyAction()
            {
                Name = "List Ginger Grid Nodes", Action = () => ListGingerGridNodes()
            });
            Actions.Add(new MyAction()
            {
                Name = "Open GingerGrid Window", Action = () => OpenGingerGridWindows()
            });
            Actions.Add(new MyAction()
            {
                Name = "Run Goto URL On all Nodes", Action = () => RunGotoURLOnallNodes()
            });
            Actions.Add(new MyAction()
            {
                Name = "Run Selenium Actions", Action = () => RunSeleniumActions()
            });
            Actions.Add(new MyAction()
            {
                Name = "List Plugins", Action = () => ListPlugins()
            });
            Actions.Add(new MyAction()
            {
                Name = "Run C# Code", Action = () => RunCShrapCode()
            });
            Actions.Add(new MyAction()
            {
                Name = "Run Selenium Driver Core Plugin", Action = () => RunSeleniumDriverCorePlugin()
            });
            Actions.Add(new MyAction()
            {
                Name = "Open Applications", Action = () => OpenApplciations()
            });
            Actions.Add(new MyAction()
            {
                Name = "Open BF With Old Actions", Action = () => OpenBFWithOldActions()
            });
            Actions.Add(new MyAction()
            {
                Name = "Run Action", Action = () => RunAction()
            });
            Actions.Add(new MyAction()
            {
                Name = "Repository Item Base Report", Action = () => RepositoryItemBaseReport()
            });
            ActionsListBox.ItemsSource     = Actions;
            MainDataGrid.MouseDoubleClick += MainDataGrid_MouseDoubleClick;
        }
Esempio n. 3
0
 public void ScrollToCaret()
 {
     LogTextBox.ScrollToCaret();
 }
Esempio n. 4
0
 private void LogTextBox_TextChanged(object sender, EventArgs e)
 {
     LogTextBox.SelectionStart = LogTextBox.Text.Length;
     LogTextBox.ScrollToCaret();
 }
Esempio n. 5
0
 private void OnLogTextBoxTextChanged(object sender, TextChangedEventArgs e)
 {
     LogTextBox.CaretIndex = LogTextBox.Text.Length;
     LogTextBox.ScrollToEnd();
 }
Esempio n. 6
0
 private void MapErrorMessageChanged(object sender, EventArgs e)
 {
     LogTextBox.Clear(); // Should be a list of messages
     LogTextBox.AppendText(MapControl.ErrorMessage + "\n");
 }
Esempio n. 7
0
        private void Logger_OnLog(string log, LogMessageType logType)
        {
            Console.WriteLine(log);

            void LogCallback()
            {
                LogTextBox.SelectionStart  = LogTextBox.Text.Length;
                LogTextBox.SelectionLength = 0;

                switch (logType)
                {
                case LogMessageType.Global:
                    LogTextBox.SelectionColor = ColorTranslator.FromHtml("#E9E9E9");
                    break;

                case LogMessageType.Team:
                    LogTextBox.SelectionColor = ColorTranslator.FromHtml("#FF006C");
                    break;

                case LogMessageType.Guild:
                    LogTextBox.SelectionColor = ColorTranslator.FromHtml("#975FFF");
                    break;

                case LogMessageType.Alliance:
                    LogTextBox.SelectionColor = ColorTranslator.FromHtml("#FFAD42");
                    break;

                case LogMessageType.Party:
                    LogTextBox.SelectionColor = ColorTranslator.FromHtml("#00E4FF");
                    break;

                case LogMessageType.Sales:
                    LogTextBox.SelectionColor = ColorTranslator.FromHtml("#B3783E");
                    break;

                case LogMessageType.Seek:
                    LogTextBox.SelectionColor = ColorTranslator.FromHtml("#E4A0D5");
                    break;

                case LogMessageType.Noob:
                    LogTextBox.SelectionColor = ColorTranslator.FromHtml("#D3AA07");
                    break;

                case LogMessageType.Admin:
                    LogTextBox.SelectionColor = ColorTranslator.FromHtml("#FF00FF");
                    break;

                case LogMessageType.Private:
                    LogTextBox.SelectionColor = ColorTranslator.FromHtml("#7EC3FF");
                    break;

                case LogMessageType.Info:
                    LogTextBox.SelectionColor = ColorTranslator.FromHtml("#46A324");
                    break;

                case LogMessageType.FightLog:
                    LogTextBox.SelectionColor = ColorTranslator.FromHtml("#9DFF00");
                    break;

                case LogMessageType.Public:
                    LogTextBox.SelectionColor = ColorTranslator.FromHtml("#EF3A3E");
                    break;

                case LogMessageType.Arena:
                    LogTextBox.SelectionColor = ColorTranslator.FromHtml("#F16392");
                    break;

                case LogMessageType.Community:
                    LogTextBox.SelectionColor = ColorTranslator.FromHtml("#9EC79D");
                    break;

                case LogMessageType.Sender:
                    LogTextBox.SelectionColor = ColorTranslator.FromHtml("#1B96FF");
                    break;

                case LogMessageType.Default:
                    LogTextBox.SelectionColor = ColorTranslator.FromHtml("#E8890D");
                    break;

                case LogMessageType.Divers:
                    LogTextBox.SelectionColor = ColorTranslator.FromHtml("#3498db");
                    break;

                default:
                    LogTextBox.SelectionColor = ColorTranslator.FromHtml("#E8890D");
                    break;
                }
                var valueOrig = string.Empty;

                if (log.Contains("Received:") || log.Contains("Send"))
                {
                    switch (log.Split(':')[0])
                    {
                    case "Received":
                        valueOrig = "Serveur";
                        break;

                    case "Send":
                        valueOrig = "Client";
                        break;
                    }
                    string[] row1         = { DateTime.Now.ToLongTimeString(), valueOrig, log.Split('(')[1].Split(')')[0], log.Split('-')[1].Replace(" ", "") };
                    var      listViewItem = new ListViewItem(row1);
                    PacketsListView.Items.Add(listViewItem);

                    if (log.Contains("Send"))
                    {
                        PacketsListView.Items[PacketsListView.Items.Count - 1].ForeColor = ColorTranslator.FromHtml("#F16392");
                    }
                    if (log.Contains("Received"))
                    {
                        PacketsListView.Items[PacketsListView.Items.Count - 1].ForeColor = ColorTranslator.FromHtml("#9EC79D");
                    }
                }
                else if (log.Contains("NO HANDLER"))
                {
                    NoHandlersListBox.Items.Add(log.Split(':')[1].Replace(" ", ""));
                }
                else
                {
                    var text = $"[{DateTime.Now.ToLongTimeString()}] {log}";
                    LogTextBox.SelectedText   = text + "\r\n";
                    LogTextBox.SelectionColor = LogTextBox.ForeColor;
                    LogTextBox.ScrollToCaret();
                }
            }

            LogTextBox.Invoke((Action)LogCallback);
        }
Esempio n. 8
0
        private void button1_Click(object sender, EventArgs e)
        {
            StartButton.Enabled = false;

            try
            {
                m_pRdpSession = new RDPSession();

                m_pRdpSession.OnAttendeeConnected         += new _IRDPSessionEvents_OnAttendeeConnectedEventHandler(OnAttendeeConnected);
                m_pRdpSession.OnAttendeeDisconnected      += new _IRDPSessionEvents_OnAttendeeDisconnectedEventHandler(OnAttendeeDisconnected);
                m_pRdpSession.OnControlLevelChangeRequest += new _IRDPSessionEvents_OnControlLevelChangeRequestEventHandler(OnControlLevelChangeRequest);
                //m_pRdpSession
                m_pRdpSession.Open();
                IRDPSRAPIInvitation pInvitation = m_pRdpSession.Invitations.CreateInvitation("WJB_RemoteDesktop_Application", "LAN_Network", "2314", 1);

                //use port 14242


                //NetManager.EstablishConnection();

                //NetManager.ReceiveConnection();


                //textBox2.AppendText(m_pRdpSession.Attendees.ToString() + Environment.NewLine);
                string invitationString = pInvitation.ConnectionString;
                WriteToFile(invitationString);
                //LogTextBox.Text += "Presentation Started. Your Desktop is being shared." + Environment.NewLine;
                //LogTextBox.AppendText("Presentation Started. Your Desktop is being shared." + Environment.NewLine);
                LogTextBox.AppendText("Starting . . ." + Environment.NewLine);

                //NetManager propTest = new NetManager("defaultMessage", null, false, 0);
                NetManager propTest = new NetManager();

                Thread netManager = new Thread(new ThreadStart(propTest.RunExample));

                netManager.Start();

                //Thread.Sleep(2500);

                while (!File.Exists("listeners.xml"))
                {
                    //LogTextBox.AppendText("Waiting for inv.xml to be written to file." + Environment.NewLine);
                }

                /*while (IsFileLocked("listeners.xml") == true)
                 * {
                 *  LogTextBox.AppendText(IsFileLocked("listeners.xml") + Environment.NewLine);
                 * }*/

                while (IsFileEmpty("listeners.xml") == true)
                {
                    //wait
                }


                //IsFileLocked("listeners.xml");

                //LogTextBox.AppendText(IsFileLocked("listeners.xml") + Environment.NewLine);

                //Thread.Sleep(5000);

                LogTextBox.AppendText("Presentation Started. Your Desktop is ready to be shared." + Environment.NewLine);

                string[] listeners = File.ReadAllLines("listeners.xml");

                foreach (var item in listeners)
                {
                    //Console.WriteLine(item.ToString());
                    LogTextBox.AppendText(item + Environment.NewLine);
                }

                StopButton.Enabled = true;
            }
            catch (Exception ex)
            {
                //LogTextBox.Text += "Error occured while starting presentation. Error: " + ex.ToString() + Environment.NewLine;
                LogTextBox.AppendText("Error occured while starting presentation. Error: " + ex.ToString() + Environment.NewLine);
            }
        }
Esempio n. 9
0
 private void Log(string message)
 {
     Dispatcher.Invoke(() => { LogTextBox.AppendText($"{DateTime.Now:yyyy/MM/dd HH:mm:ss.fff} | {message}\n"); LogTextBox.ScrollToEnd(); });
 }
Esempio n. 10
0
 private void UpdateLog()
 {
     LogTextBox.Text           = Observer.Log;
     LogTextBox.SelectionStart = LogTextBox.TextLength;
     LogTextBox.ScrollToCaret();
 }
Esempio n. 11
0
 /// <summary>
 /// Scrolls the logfile textbox to the end, so that newest log entries are shown.
 /// </summary>
 /// <param name="drawingContext">The drawing instructions for a specific element. This context is provided to the layout system.</param>
 protected override void OnRender(System.Windows.Media.DrawingContext drawingContext)
 {
     LogTextBox.ScrollToEnd();
     base.OnRender(drawingContext);
 }
 private void CleatLogButton_Click(object sender, RoutedEventArgs e)
 {
     LogTextBox.Clear();
 }
Esempio n. 13
0
 private void btnClearLog_Click(object sender, RoutedEventArgs e)
 {
     LogTextBox.Clear();
 }
Esempio n. 14
0
        private void DllTest1_Click(object sender, EventArgs e)
        {
            //string url="http://localhost:8091";
            string url = "http://www.gebhardt.de:8091";

            int len;

            // too small
            //int nMax = 50;
            int nMax = 50000;

            LogTextBox.AppendText("\r\nURL: " + url + "\r\n\r\n");

            StringBuilder result = new StringBuilder(nMax + 1);

            len = CallProselectaDll.SetWebserviceUrl(url);

            len = CallProselectaDll.SetWebserviceSaveDiagram(0);

            len = CallProselectaDll.GetWebserviceStatus(
                result,
                nMax);

            string ANTRIEBSART = "RIEMEN";
            string BAUREIHE    = "RZR 10";
//            string BAUREIHE = "RER 10|RLM 50-EFF1";
            string AUSFUEHRUNG     = "";
            string ATEX            = "ID_KEIN";
            string ENTRAUCHER      = "ID_KEIN";
            string T               = "20";
            string T_EINHEIT       = "C";
            string V               = "10000";
            string V_EINHEIT       = "m3/h";
            string DPT             = "";
            string DPFA            = "1000";
            string P_EINHEIT       = "PA";
            string EINBAUART       = "A";
            string RHO1            = "1,2";
            string RHO_EINHEIT     = "kg/m^3";
            string BAUGROESSE_MIN  = "400";
            string BAUGROESSE_MAX  = "400";
            string SUCH_MIN        = "0,9";
            string SUCH_MAX        = "1,4";
            string DREHZAHLRESERVE = "0";
            string VERLUSTBEIWERT  = "0";
            string ETA_FILTER      = "0";
            string C2_FILTER       = "0";
            string BREITE_FILTER   = "1400";
            string BREITE_EINHEIT  = "MM";
            string HOEHE_FILTER    = "0";
            string HOEHE_EINHEIT   = "MM";
            string FREQU_SP_STROM  = "3-400-50";
            string ZUBEHOER        = "NEIN";
            string ZUBEHOER_ALLES  = "NEIN";
            string VERSION         = "";
            string SPRACHE         = "DE";

            len = CallProselectaDll.SetWebserviceRltCalculation(
                1,
                "JA",
                "3SEITIG GESCHLOSSEN",
                "KAMMER UND PRALLPLATTE",
                "0",
                "MM"
                );

            len = CallProselectaDll.Blackbox(
                result,
                nMax,
                ANTRIEBSART, BAUREIHE, AUSFUEHRUNG, ATEX, ENTRAUCHER, T, T_EINHEIT, V, V_EINHEIT, DPT, DPFA, P_EINHEIT, EINBAUART, RHO1,
                RHO_EINHEIT, BAUGROESSE_MIN, BAUGROESSE_MAX, SUCH_MIN, SUCH_MAX, DREHZAHLRESERVE, VERLUSTBEIWERT, ETA_FILTER, C2_FILTER,
                BREITE_FILTER, BREITE_EINHEIT, HOEHE_FILTER,
                HOEHE_EINHEIT, FREQU_SP_STROM,
                ZUBEHOER, ZUBEHOER_ALLES, VERSION, SPRACHE);

            if (len > nMax)
            {
                LogTextBox.AppendText("SMALL RESULT:\r\n\r\n" + result + "\r\n---------------------------------\r\n");

                nMax   = len;
                result = new StringBuilder(nMax + 1);
                CallProselectaDll.Blackbox(
                    result,
                    nMax,
                    ANTRIEBSART, BAUREIHE, AUSFUEHRUNG, ATEX, ENTRAUCHER, T, T_EINHEIT, V, V_EINHEIT, DPT, DPFA, P_EINHEIT, EINBAUART, RHO1,
                    RHO_EINHEIT, BAUGROESSE_MIN, BAUGROESSE_MAX, SUCH_MIN, SUCH_MAX, DREHZAHLRESERVE, VERLUSTBEIWERT, ETA_FILTER, C2_FILTER, BREITE_FILTER, BREITE_EINHEIT, HOEHE_FILTER,
                    HOEHE_EINHEIT, FREQU_SP_STROM, ZUBEHOER, ZUBEHOER_ALLES, VERSION, SPRACHE);
            }

            byte[] buffer = Encoding.Convert(Encoding.ASCII, Encoding.Unicode, Encoding.ASCII.GetBytes(result.ToString()));
            string rs     = Encoding.Unicode.GetString(buffer, 0, buffer.Length);

            LogTextBox.AppendText("\r\nRESULT:\r\n\r\n" + result + "\r\n");

            result = new StringBuilder(nMax + 1);
            len    = CallProselectaDll.GetWebserviceStatus(
                result,
                nMax);

            LogTextBox.AppendText("\r\nSTATUS:\r\n\r\n" + result + "\r\n");

            result = new StringBuilder(nMax + 1);
            len    = CallProselectaDll.GetWebserviceGraphFile(
                result,
                nMax,
                1);

            LogTextBox.AppendText("\r\nGRAFIC FILE:\r\n\r\n" + result + "\r\n");
        }
Esempio n. 15
0
 //==============================================
 // Callbacks
 //==============================================
 #region Callbacks
 private void OnLogCallback(LogMessage message)
 {
     LogTextBox.AppendText(message.Message + Environment.NewLine);
     LogTextBox.LineDown();
 }
Esempio n. 16
0
        private void Logger_OnLog(string log, LogMessageType logType)
        {
            Console.WriteLine(log);

            void LogCallback()
            {
                LogTextBox.SelectionStart  = LogTextBox.Text.Length;
                LogTextBox.SelectionLength = 0;

                switch (logType)
                {
                case LogMessageType.Global:
                    LogTextBox.SelectionColor = ColorTranslator.FromHtml("#E9E9E9");
                    break;

                case LogMessageType.Team:
                    LogTextBox.SelectionColor = ColorTranslator.FromHtml("#FF006C");
                    break;

                case LogMessageType.Guild:
                    LogTextBox.SelectionColor = ColorTranslator.FromHtml("#975FFF");
                    break;

                case LogMessageType.Alliance:
                    LogTextBox.SelectionColor = ColorTranslator.FromHtml("#FFAD42");
                    break;

                case LogMessageType.Party:
                    LogTextBox.SelectionColor = ColorTranslator.FromHtml("#00E4FF");
                    break;

                case LogMessageType.Sales:
                    LogTextBox.SelectionColor = ColorTranslator.FromHtml("#B3783E");
                    break;

                case LogMessageType.Seek:
                    LogTextBox.SelectionColor = ColorTranslator.FromHtml("#E4A0D5");
                    break;

                case LogMessageType.Noob:
                    LogTextBox.SelectionColor = ColorTranslator.FromHtml("#D3AA07");
                    break;

                case LogMessageType.Admin:
                    LogTextBox.SelectionColor = ColorTranslator.FromHtml("#FF00FF");
                    break;

                case LogMessageType.Private:
                    LogTextBox.SelectionColor = ColorTranslator.FromHtml("#7EC3FF");
                    break;

                case LogMessageType.Info:
                    LogTextBox.SelectionColor = ColorTranslator.FromHtml("#46A324");
                    break;

                case LogMessageType.FightLog:
                    LogTextBox.SelectionColor = ColorTranslator.FromHtml("#9DFF00");
                    break;

                case LogMessageType.Public:
                    LogTextBox.SelectionColor = ColorTranslator.FromHtml("#EF3A3E");
                    break;

                case LogMessageType.Arena:
                    LogTextBox.SelectionColor = ColorTranslator.FromHtml("#F16392");
                    break;

                case LogMessageType.Community:
                    LogTextBox.SelectionColor = ColorTranslator.FromHtml("#9EC79D");
                    break;

                case LogMessageType.Sender:
                    LogTextBox.SelectionColor = ColorTranslator.FromHtml("#1B96FF");
                    break;

                case LogMessageType.Default:
                    LogTextBox.SelectionColor = ColorTranslator.FromHtml("#E8890D");
                    break;

                case LogMessageType.Divers:
                    LogTextBox.SelectionColor = ColorTranslator.FromHtml("#3498db");
                    break;

                default:
                    LogTextBox.SelectionColor = ColorTranslator.FromHtml("#E8890D");
                    break;
                }

                var text = $"[{DateTime.Now.ToLongTimeString()}] {log}";

                LogTextBox.SelectedText   = text + "\r\n";
                LogTextBox.SelectionColor = LogTextBox.ForeColor;
                LogTextBox.ScrollToCaret();
            }

            LogTextBox.Invoke((Action)LogCallback);
        }
Esempio n. 17
0
        public override void Selected(GUI.Selection selection)
        {
            if (selection.List.IsEmpty)
            {
                return;
            }
            LogTextBox.ClearContent();
            LaunchableMapsList.HighlightCurrentItem();
            Map    map = null;
            string mapName;

            if (selection.RowIndex == 0)
            {
                mapName = Text.MainGame;
            }
            else
            {
                map     = ((GUI.SelectableMap)selection.SelectedItem).Map;
                mapName = map.Name;
            }
            var options = new GUI.SelectionPrompt.Options()
            {
                AllowCancel = true
            };

            if (selection.RowIndex == 0)               // main map
            {
                options.DisabledItems.Add(2);          // Disable "Set Startup Level"
            }
            else
            {
                if (string.IsNullOrEmpty(map.StartupLevel))
                {
                    options.DisabledItems.Add(1);                     // Disable "New Game"
                }
                if (!Program.saveManagerWindow.MapHasSave(map))
                {
                    options.DisabledItems.Add(0);                     // Disable "Continue"
                }
            }
            int response = SelectionPrompt.PromptSelection(
                new string[] { Text.Continue, Text.NewGame, Text.SetStartupLevel },
                options);

            switch (response)
            {
            case 0:                     // Continue
                try {
                    if (Program.manageSaves &&
                        Program.saveManagerWindow.GetCurrentSavedMapName() != mapName)
                    {
                        LogTextBox.WriteLine(Text.PreparingSaveFile);
                        Program.saveManagerWindow.SwapSaves(mapName);
                    }
                    LaunchGame(null);
                } catch (Exception e) {
                    LogTextBox.WriteLine(string.Format(Text.ErrorWithMessage, e.Message));
                }
                break;

            case 1:                     // New Game
                try {
                    if (Program.manageSaves)
                    {
                        LogTextBox.WriteLine(Text.BackingUpCurrentSave);
                        Program.saveManagerWindow.BackupCurrentSave();
                        Program.saveManagerWindow.SetCurrentSave(mapName);
                    }
                    LaunchGame((selection.RowIndex == 0) ? null : map);
                } catch (Exception e) {
                    LogTextBox.WriteLine(string.Format(Text.ErrorWithMessage, e.Message));
                }
                break;

            case 2:                     // Set Startup Level
                SetStartupLevel(map);
                DetailsTextBox.WriteLongMapInfo(map);
                break;
            }
            LaunchableMapsList.SelectCurrentItem();
        }
Esempio n. 18
0
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
            int count;

            MonitorCounter(out count);
            ControlButton.Enabled = false;
            LogTextBox.AppendText("Monitor Count: " + count + Environment.NewLine);
            //FormBorderStyle = FormBorderStyle.None;
            //pRdpViewer.Size = new Size(1280, 720);
            //pRdpViewer.ClientSize = new Size(Width, Height);
            //pRdpViewer.AutoSize = false;
            //AutoSizeMode = AutoSizeMode.GrowAndShrink;
            //LogTextBox.Text += ("This is working" + Environment.NewLine);
            int viewerheight = pRdpViewer.Height;
            int viewerwidth  = pRdpViewer.Width;

            TextWriter tw  = File.CreateText("defaultViewerWidth.xml");
            TextWriter tw1 = File.CreateText("defaultViewerHeight.xml");

            //tw.WriteLine(System.Windows.Forms.SystemInformation.MonitorCount);
            tw.WriteLine(viewerwidth);
            tw1.WriteLine(viewerheight);
            tw.Close();
            tw1.Close();

            string test11 = System.Windows.Forms.Screen.AllScreens.ToString();

            TextWriter tw2 = File.CreateText("test11.xml");

            tw2.WriteLine(test11);

            foreach (var screen in Screen.AllScreens)
            {
                // For each screen, add the screen properties to a list box.
                //tw2.WriteLine("Device Name: " + screen.DeviceName);
                //tw2.WriteLine("Bounds: " + screen.Bounds.ToString());
                tw2.WriteLine(screen.Bounds.ToString());
                //tw2.WriteLine("Type: " + screen.GetType().ToString());
                //tw2.WriteLine("Working Area: " + screen.WorkingArea.ToString());
                //tw2.WriteLine("Primary Screen: " + screen.Primary.ToString());
            }

            tw2.Close();

            //LogTextBox.AppendText(test11 + Environment.NewLine);


            Screen scrn = Screen.FromControl(this);



            string scrnbound = scrn.Bounds.ToString();

            LogTextBox.AppendText(scrnbound + Environment.NewLine);


            LogTextBox.AppendText("Window size: " + pRdpViewer.Width + "x" + pRdpViewer.Height + Environment.NewLine);
            pRdpViewer.Width = viewerwidth * count;
            int locationx = Width / 110;

            pRdpViewer.Location = new Point(locationx, pRdpViewer.Location.Y);
            //pRdpViewer.Height = viewerheight - viewerheight/1;
            pRdpViewer.SmartSizing = true;
            //bool monitorSwitch = true;
            //pRdpViewer.OcxState;

            UpdateMonitorPosition();
        }
Esempio n. 19
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.label1 = new System.Windows.Forms.Label();
     this.statusStrip1 = new System.Windows.Forms.StatusStrip();
     this.toolStripStatusLabel1 = new System.Windows.Forms.ToolStripStatusLabel();
     this.toolStripProgressBar1 = new System.Windows.Forms.ToolStripProgressBar();
     this.buttonOK = new System.Windows.Forms.Button();
     this.buttonCancel = new System.Windows.Forms.Button();
     this.label2 = new System.Windows.Forms.Label();
     this.tabPage1 = new System.Windows.Forms.TabPage();
     this.tabPage2 = new System.Windows.Forms.TabPage();
     this.tabPage3 = new System.Windows.Forms.TabPage();
     this.tabPage4 = new System.Windows.Forms.TabPage();
     this.tabPage5 = new System.Windows.Forms.TabPage();
     this.tabPage6 = new System.Windows.Forms.TabPage();
     this.tabPage7 = new System.Windows.Forms.TabPage();
     this.tabPage8 = new System.Windows.Forms.TabPage();
     this.tabPage9 = new System.Windows.Forms.TabPage();
     this.tabPage10 = new System.Windows.Forms.TabPage();
     this.tabPage11 = new System.Windows.Forms.TabPage();
     this.tabPage12 = new System.Windows.Forms.TabPage();
     this.logTextBox1 = new HydroSharedAddIn.gui.LogTextBox();
     this.elapsedTimeLabel1 = new HydroSharedAddIn.gui.ElapsedTimeLabel();
     this.currentSimulationLabel1 = new HydroSharedAddIn.gui.CurrentSimulationLabel();
     this.statusStrip1.SuspendLayout();
     this.SuspendLayout();
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Location = new System.Drawing.Point(12, 9);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(93, 13);
     this.label1.TabIndex = 0;
     this.label1.Text = "Current Subreach:";
     //
     // statusStrip1
     //
     this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.toolStripStatusLabel1,
     this.toolStripProgressBar1});
     this.statusStrip1.Location = new System.Drawing.Point(0, 540);
     this.statusStrip1.Name = "statusStrip1";
     this.statusStrip1.Size = new System.Drawing.Size(635, 22);
     this.statusStrip1.TabIndex = 3;
     this.statusStrip1.Text = "statusStrip1";
     //
     // toolStripStatusLabel1
     //
     this.toolStripStatusLabel1.Name = "toolStripStatusLabel1";
     this.toolStripStatusLabel1.Size = new System.Drawing.Size(118, 17);
     this.toolStripStatusLabel1.Text = "toolStripStatusLabel1";
     //
     // toolStripProgressBar1
     //
     this.toolStripProgressBar1.Name = "toolStripProgressBar1";
     this.toolStripProgressBar1.Size = new System.Drawing.Size(100, 16);
     //
     // buttonOK
     //
     this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.buttonOK.Location = new System.Drawing.Point(227, 502);
     this.buttonOK.Name = "buttonOK";
     this.buttonOK.Size = new System.Drawing.Size(75, 23);
     this.buttonOK.TabIndex = 4;
     this.buttonOK.Text = "OK";
     this.buttonOK.UseVisualStyleBackColor = true;
     //
     // buttonCancel
     //
     this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.buttonCancel.Location = new System.Drawing.Point(308, 502);
     this.buttonCancel.Name = "buttonCancel";
     this.buttonCancel.Size = new System.Drawing.Size(75, 23);
     this.buttonCancel.TabIndex = 5;
     this.buttonCancel.Text = "Cancel";
     this.buttonCancel.UseVisualStyleBackColor = true;
     //
     // label2
     //
     this.label2.AutoSize = true;
     this.label2.Location = new System.Drawing.Point(305, 9);
     this.label2.Name = "label2";
     this.label2.Size = new System.Drawing.Size(74, 13);
     this.label2.TabIndex = 6;
     this.label2.Text = "Elapsed Time:";
     //
     // tabPage1
     //
     this.tabPage1.Location = new System.Drawing.Point(4, 22);
     this.tabPage1.Name = "tabPage1";
     this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
     this.tabPage1.Size = new System.Drawing.Size(603, 433);
     this.tabPage1.TabIndex = 0;
     this.tabPage1.Text = "tabPage1";
     this.tabPage1.UseVisualStyleBackColor = true;
     //
     // tabPage2
     //
     this.tabPage2.Location = new System.Drawing.Point(4, 22);
     this.tabPage2.Name = "tabPage2";
     this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
     this.tabPage2.Size = new System.Drawing.Size(603, 433);
     this.tabPage2.TabIndex = 1;
     this.tabPage2.Text = "tabPage2";
     this.tabPage2.UseVisualStyleBackColor = true;
     //
     // tabPage3
     //
     this.tabPage3.Location = new System.Drawing.Point(4, 22);
     this.tabPage3.Name = "tabPage3";
     this.tabPage3.Size = new System.Drawing.Size(603, 433);
     this.tabPage3.TabIndex = 0;
     this.tabPage3.Text = "log";
     this.tabPage3.Visible = false;
     //
     // tabPage4
     //
     this.tabPage4.Location = new System.Drawing.Point(4, 22);
     this.tabPage4.Name = "tabPage4";
     this.tabPage4.Size = new System.Drawing.Size(603, 433);
     this.tabPage4.TabIndex = 0;
     this.tabPage4.Text = "log";
     this.tabPage4.Visible = false;
     //
     // tabPage5
     //
     this.tabPage5.Location = new System.Drawing.Point(4, 22);
     this.tabPage5.Name = "tabPage5";
     this.tabPage5.Size = new System.Drawing.Size(603, 433);
     this.tabPage5.TabIndex = 0;
     this.tabPage5.Text = "log";
     this.tabPage5.Visible = false;
     //
     // tabPage6
     //
     this.tabPage6.Location = new System.Drawing.Point(4, 22);
     this.tabPage6.Name = "tabPage6";
     this.tabPage6.Size = new System.Drawing.Size(603, 433);
     this.tabPage6.TabIndex = 0;
     this.tabPage6.Text = "log";
     this.tabPage6.Visible = false;
     //
     // tabPage7
     //
     this.tabPage7.Location = new System.Drawing.Point(4, 22);
     this.tabPage7.Name = "tabPage7";
     this.tabPage7.Size = new System.Drawing.Size(603, 433);
     this.tabPage7.TabIndex = 0;
     this.tabPage7.Text = "log";
     this.tabPage7.Visible = false;
     //
     // tabPage8
     //
     this.tabPage8.Location = new System.Drawing.Point(4, 22);
     this.tabPage8.Name = "tabPage8";
     this.tabPage8.Size = new System.Drawing.Size(603, 433);
     this.tabPage8.TabIndex = 0;
     this.tabPage8.Text = "log";
     this.tabPage8.Visible = false;
     //
     // tabPage9
     //
     this.tabPage9.Location = new System.Drawing.Point(4, 22);
     this.tabPage9.Name = "tabPage9";
     this.tabPage9.Size = new System.Drawing.Size(603, 433);
     this.tabPage9.TabIndex = 0;
     this.tabPage9.Text = "log";
     this.tabPage9.Visible = false;
     //
     // tabPage10
     //
     this.tabPage10.Location = new System.Drawing.Point(4, 22);
     this.tabPage10.Name = "tabPage10";
     this.tabPage10.Size = new System.Drawing.Size(603, 433);
     this.tabPage10.TabIndex = 0;
     this.tabPage10.Text = "log";
     this.tabPage10.Visible = false;
     //
     // tabPage11
     //
     this.tabPage11.Location = new System.Drawing.Point(4, 22);
     this.tabPage11.Name = "tabPage11";
     this.tabPage11.Size = new System.Drawing.Size(603, 433);
     this.tabPage11.TabIndex = 0;
     this.tabPage11.Text = "log";
     this.tabPage11.Visible = false;
     //
     // tabPage12
     //
     this.tabPage12.Location = new System.Drawing.Point(4, 22);
     this.tabPage12.Name = "tabPage12";
     this.tabPage12.Size = new System.Drawing.Size(603, 433);
     this.tabPage12.TabIndex = 0;
     this.tabPage12.Text = "log";
     this.tabPage12.Visible = false;
     //
     // logTextBox1
     //
     this.logTextBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                 | System.Windows.Forms.AnchorStyles.Left)
                 | System.Windows.Forms.AnchorStyles.Right)));
     this.logTextBox1.Location = new System.Drawing.Point(12, 38);
     this.logTextBox1.Multiline = true;
     this.logTextBox1.Name = "logTextBox1";
     this.logTextBox1.Size = new System.Drawing.Size(611, 458);
     this.logTextBox1.TabIndex = 9;
     //
     // elapsedTimeLabel1
     //
     this.elapsedTimeLabel1.AutoSize = true;
     this.elapsedTimeLabel1.Location = new System.Drawing.Point(403, 9);
     this.elapsedTimeLabel1.Name = "elapsedTimeLabel1";
     this.elapsedTimeLabel1.Size = new System.Drawing.Size(99, 13);
     this.elapsedTimeLabel1.TabIndex = 8;
     this.elapsedTimeLabel1.Text = "elapsedTimeLabel1";
     //
     // currentSimulationLabel1
     //
     this.currentSimulationLabel1.AutoSize = true;
     this.currentSimulationLabel1.Location = new System.Drawing.Point(123, 9);
     this.currentSimulationLabel1.Name = "currentSimulationLabel1";
     this.currentSimulationLabel1.Size = new System.Drawing.Size(120, 13);
     this.currentSimulationLabel1.TabIndex = 1;
     this.currentSimulationLabel1.Text = "currentSimulationLabel1";
     //
     // RunDialog
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(635, 300);
     this.Controls.Add(this.logTextBox1);
     this.Controls.Add(this.elapsedTimeLabel1);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.buttonCancel);
     this.Controls.Add(this.buttonOK);
     this.Controls.Add(this.statusStrip1);
     this.Controls.Add(this.currentSimulationLabel1);
     this.Controls.Add(this.label1);
     this.Name = "RunDialog";
     this.Text = "j349 Subreach Simulations";
     this.statusStrip1.ResumeLayout(false);
     this.statusStrip1.PerformLayout();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Esempio n. 20
0
        //ServerName = data["Server"];
        //ChannelName = data["Channel"];

        //double zoom = Math.Sqrt((squared / 127204) + ((width + height) / 880));

        private void ConnectButton_Click(object sender, EventArgs e)
        {
            //LogTextBox.AppendText("Searching for host and attempting to establish a connection. This window may lock up for a few seconds." + Environment.NewLine);

            LogTextBox.AppendText("Please enter the host's network address and port." + Environment.NewLine);

            //NetManager.RunExample();


            //LogTextBox.AppendText("Found host. Attempting to establish a connect" + Environment.NewLine);

            //NetManager.EstablishConnection();


            //NetManager.ReceiveConnection();

            //WinViewer netmanager = new WinViewer();
            //NetManager netmanager = new NetManager();
            //NetProgram netprogram = new NetProgram();


            //var netprogram = new NetProgram();
            //netprogram.NetPeerShutdown();
            //netprogram.NetPeerProgram();

            //netprogram.NetPeerShutdown();

            PickServer serverInfo = new PickServer();

            serverInfo.ShowDialog();

            if (serverInfo.IPv4Address_Box.Text == "")
            {
                return;
            }
            if (serverInfo.textBox1.Text == "")
            {
                return;
            }
            if (serverInfo.cancelButton == true)
            {
                return;
            }



            //TextWriter tw = File.CreateText("ip.config");

            string peerIP   = serverInfo.IPv4Address_Box.Text;
            string peerPort = serverInfo.textBox1.Text;


            //WinViewer propTest = new WinViewer();
            //MessagesClass propTest = new MessagesClass();
            //NetManager tws = new NetManager(
            //"This report displays the number {0}.", 42);

            //NetManager propTest = new NetManager();


            //Console.WriteLine(peerAddress + Environment.NewLine);
            string peerAddress = peerIP + ":" + peerPort;

            if (serverInfo.cancelButton == true)
            {
                return;
            }
            else
            {
                Console.WriteLine(peerAddress + Environment.NewLine);

                TextWriter tw = File.CreateText("peerAddress.txt");
                tw.WriteLine(peerAddress);
                tw.Close();


                LogTextBox.AppendText("Address: " + peerAddress + Environment.NewLine);


                StartNetManager();
            }
        }
Esempio n. 21
0
        public void Log(string str)
        {
            Action <string> function = s => LogTextBox.AppendText(s);

            this.Invoke(function, new object[] { str });
        }
Esempio n. 22
0
 //_IRDPSessionEvents.OnControlLevelChangeResponse(object, RDPCOMAPILib.CTRL_LEVEL, int)
 //_IRDPSessionEvents_OnSharedDesktopSettingsChangedEventHandler(int width, int height, int colordepth)
 void OnControlLevelChangeResponse(object pAttendee, CTRL_LEVEL RequestedLevel, int ReasonCode)
 {
     LogTextBox.AppendText("Level Changed " + ReasonCode + Environment.NewLine);
     //   _IRDPSessionEvents_Event_OnControlLevelChangeResponse
 }
Esempio n. 23
0
 private void LogTextBox_OnTextChanged(object sender, TextChangedEventArgs e)
 {
     Dispatcher.Invoke(() => LogTextBox.ScrollToEnd(), DispatcherPriority.ApplicationIdle);
 }
Esempio n. 24
0
 private void OnConnectionFailed(object sender, EventArgs e)
 {
     //LogTextBox.Text += "Connection Failed." + Environment.NewLine;
     LogTextBox.AppendText("Connection Failed." + Environment.NewLine);
 }
 private void LogTextBox_TextChanged(object sender, System.Windows.Controls.TextChangedEventArgs e)
 {
     LogTextBox.ScrollToEnd();
 }
Esempio n. 26
0
        private void InterfaceTimer_Tick(object sender, EventArgs e)
        {
            try
            {
                Text = $"Total: {Envir.LastCount}, Real: {Envir.LastRealCount}";
                PlayersLabel.Text     = $"Players: {Envir.Players.Count}";
                MonsterLabel.Text     = $"Monsters: {Envir.MonsterCount}";
                ConnectionsLabel.Text = $"Connections: {Envir.Connections.Count}";

                if (Settings.Multithreaded && (Envir.MobThreads != null))
                {
                    CycleDelayLabel.Text = $"CycleDelays: {Envir.LastRunTime:0000}";
                    for (int i = 0; i < Envir.MobThreads.Length; i++)
                    {
                        if (Envir.MobThreads[i] == null)
                        {
                            break;
                        }
                        CycleDelayLabel.Text = CycleDelayLabel.Text + $"|{Envir.MobThreads[i].LastRunTime:0000}";
                    }
                }
                else
                {
                    CycleDelayLabel.Text = $"CycleDelay: {Envir.LastRunTime}";
                }

                while (!MessageQueue.MessageLog.IsEmpty)
                {
                    string message;

                    if (!MessageQueue.MessageLog.TryDequeue(out message))
                    {
                        continue;
                    }

                    LogTextBox.AppendText(message);
                }

                while (!MessageQueue.DebugLog.IsEmpty)
                {
                    string message;

                    if (!MessageQueue.DebugLog.TryDequeue(out message))
                    {
                        continue;
                    }

                    DebugLogTextBox.AppendText(message);
                }

                while (!MessageQueue.ChatLog.IsEmpty)
                {
                    string message;

                    if (!MessageQueue.ChatLog.TryDequeue(out message))
                    {
                        continue;
                    }

                    ChatLogTextBox.AppendText(message);
                }

                ProcessPlayersOnlineTab();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }
Esempio n. 27
0
 private async Task CheckAndClean(bool clean)
 {
     LogTextBox.Clear();
     MainTabControl.SelectedTab = LogsTabPage;
     var cancellationToken = new CancellationToken(false);
     var so = ControlsHelper.MainTaskScheduler;
     await Task.Factory.StartNew(() =>
     {
         AddLogLine("Enumerating Devices...");
         var devices = DeviceDetector.GetDevices();
         var offline = devices.Where(x => !x.IsPresent && x.IsRemovable && !x.Description.Contains("RAS Async Adapter")).ToArray();
         var problem = devices.Where(x => x.Status.HasFlag(DeviceNodeStatus.DN_HAS_PROBLEM)).Except(offline).ToArray();
         var unknown = devices.Where(x => x.Description.Contains("Unknown")).Except(offline).Except(problem).ToArray();
         var list    = new List <string>();
         if (offline.Length > 0)
         {
             list.Add(string.Format("{0} offline devices.", offline.Length));
         }
         if (problem.Length > 0)
         {
             list.Add(string.Format("{0} problem devices.", problem.Length));
         }
         if (unknown.Length > 0)
         {
             list.Add(string.Format("{0} unknown devices.", unknown.Length));
         }
         var message = string.Join("\r\n", list);
         if (list.Count == 0)
         {
             AddLogLine("No offline, problem or unknown devices found.");
         }
         else if (clean)
         {
             foreach (var item in list)
             {
                 AddLogLine(item);
             }
             var result = System.Windows.MessageBoxResult.No;
             ControlsHelper.Invoke(new Action(() =>
             {
                 result = System.Windows.MessageBox.Show(
                     "Do you want to remove offline, problem or unknown devices?\r\n\r\n" + message,
                     "Do you want to remove devices?",
                     System.Windows.MessageBoxButton.YesNo, System.Windows.MessageBoxImage.Warning);
             }));
             if (result != System.Windows.MessageBoxResult.Yes)
             {
                 return;
             }
             var devList = new List <DeviceInfo>();
             devList.AddRange(offline);
             devList.AddRange(problem);
             devList.AddRange(unknown);
             for (var i = 0; i < devList.Count; i++)
             {
                 var item = devList[i];
                 AddLogLine("Removing Device: {0}/{1} - {2}", i + 1, devList.Count, item.Description);
                 try
                 {
                     var exception = DeviceDetector.RemoveDevice(item.DeviceId);
                     if (exception != null)
                     {
                         AddLogLine(exception.Message);
                     }
                     //System.Windows.Forms.Application.DoEvents();
                 }
                 catch (Exception ex)
                 {
                     AddLogLine(ex.Message);
                 }
             }
         }
         AddLogLine("Done");
     }, CancellationToken.None, TaskCreationOptions.LongRunning, so).ConfigureAwait(true);
 }
 private void LogTextBox_TextChanged(object sender, TextChangedEventArgs e)
 {
     LogTextBox.ScrollToEnd();
 }
Esempio n. 29
0
 public bool TriggerWrapText()
 {
     LogTextBox.WordWrap = !LogTextBox.WordWrap;
     LogTextBox.ScrollToCaret();
     return(LogTextBox.WordWrap);
 }
 /// <summary>
 ///     Append a text line with specified color.
 /// </summary>
 /// <param name="text"></param>
 /// <param name="color"></param>
 private void AppendColorLine(string text, Color color)
 {
     LogTextBox.AppendColoredText(text, color);
     LogTextBox.ScrollToEnd();
 }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.statusStrip1 = new System.Windows.Forms.StatusStrip();
     this.toolStripStatusLabel1 = new System.Windows.Forms.ToolStripStatusLabel();
     this.toolStripProgressBar1 = new System.Windows.Forms.ToolStripProgressBar();
     this.buttonOK = new System.Windows.Forms.Button();
     this.buttonCancel = new System.Windows.Forms.Button();
     this.logTextBox1 = new HydroSharedAddIn.gui.LogTextBox();
     this.elapsedTimeLabel1 = new HydroSharedAddIn.gui.ElapsedTimeLabel();
     this.currentSimulationLabel1 = new HydroSharedAddIn.gui.CurrentSimulationLabel();
     this.statusStrip1.SuspendLayout();
     this.SuspendLayout();
     //
     // statusStrip1
     //
     this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.toolStripStatusLabel1,
     this.toolStripProgressBar1});
     this.statusStrip1.Location = new System.Drawing.Point(0, 240);
     this.statusStrip1.Name = "statusStrip1";
     this.statusStrip1.Size = new System.Drawing.Size(404, 22);
     this.statusStrip1.TabIndex = 0;
     this.statusStrip1.Text = "statusStrip1";
     //
     // toolStripStatusLabel1
     //
     this.toolStripStatusLabel1.Name = "toolStripStatusLabel1";
     this.toolStripStatusLabel1.Size = new System.Drawing.Size(39, 17);
     this.toolStripStatusLabel1.Text = "Status";
     //
     // toolStripProgressBar1
     //
     this.toolStripProgressBar1.Name = "toolStripProgressBar1";
     this.toolStripProgressBar1.Overflow = System.Windows.Forms.ToolStripItemOverflow.Always;
     this.toolStripProgressBar1.Size = new System.Drawing.Size(200, 16);
     this.toolStripProgressBar1.Style = System.Windows.Forms.ProgressBarStyle.Continuous;
     //
     // buttonOK
     //
     this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.buttonOK.Location = new System.Drawing.Point(236, 214);
     this.buttonOK.Name = "buttonOK";
     this.buttonOK.Size = new System.Drawing.Size(75, 23);
     this.buttonOK.TabIndex = 3;
     this.buttonOK.Text = "OK";
     this.buttonOK.UseVisualStyleBackColor = true;
     //
     // buttonCancel
     //
     this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.buttonCancel.Location = new System.Drawing.Point(317, 214);
     this.buttonCancel.Name = "buttonCancel";
     this.buttonCancel.Size = new System.Drawing.Size(75, 23);
     this.buttonCancel.TabIndex = 4;
     this.buttonCancel.Text = "Cancel";
     this.buttonCancel.UseVisualStyleBackColor = true;
     //
     // logTextBox1
     //
     this.logTextBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                 | System.Windows.Forms.AnchorStyles.Left)
                 | System.Windows.Forms.AnchorStyles.Right)));
     this.logTextBox1.Location = new System.Drawing.Point(0, 25);
     this.logTextBox1.Multiline = true;
     this.logTextBox1.Name = "logTextBox1";
     this.logTextBox1.Size = new System.Drawing.Size(404, 183);
     this.logTextBox1.TabIndex = 5;
     //
     // elapsedTimeLabel1
     //
     this.elapsedTimeLabel1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.elapsedTimeLabel1.AutoSize = true;
     this.elapsedTimeLabel1.Location = new System.Drawing.Point(293, 9);
     this.elapsedTimeLabel1.Name = "elapsedTimeLabel1";
     this.elapsedTimeLabel1.Size = new System.Drawing.Size(99, 13);
     this.elapsedTimeLabel1.TabIndex = 2;
     this.elapsedTimeLabel1.Text = "0 s";
     //
     // currentSimulationLabel1
     //
     this.currentSimulationLabel1.AutoSize = true;
     this.currentSimulationLabel1.Location = new System.Drawing.Point(12, 9);
     this.currentSimulationLabel1.Name = "currentSimulationLabel1";
     this.currentSimulationLabel1.Size = new System.Drawing.Size(120, 13);
     this.currentSimulationLabel1.TabIndex = 1;
     this.currentSimulationLabel1.Text = "currentSimulationLabel1";
     //
     // SimulationForm
     //
     this.AcceptButton = this.buttonOK;
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.CancelButton = this.buttonCancel;
     this.ClientSize = new System.Drawing.Size(404, 262);
     this.ControlBox = false;
     this.Controls.Add(this.logTextBox1);
     this.Controls.Add(this.buttonCancel);
     this.Controls.Add(this.buttonOK);
     this.Controls.Add(this.elapsedTimeLabel1);
     this.Controls.Add(this.currentSimulationLabel1);
     this.Controls.Add(this.statusStrip1);
     this.Name = "SimulationForm";
     this.Text = "j349 Subreach Simulations";
     this.statusStrip1.ResumeLayout(false);
     this.statusStrip1.PerformLayout();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Esempio n. 32
0
 //----------------------------------------------------------------------
 public void Clear()
 {
     LogTextBox.Clear();
 }