Ejemplo n.º 1
0
        public FormFeedBack(FormMain frm, string message, List<string> attachments, bool enableAttachements)
        {
            InitializeComponent();

            _frmParrent = frm;

            Init(message, attachments, enableAttachements);
        }
Ejemplo n.º 2
0
        static void Main()
        {
            Application.ThreadException += Program.ExceptionHandler;

            Application.EnableVisualStyles ();
            Application.SetCompatibleTextRenderingDefault (false);

            Form frm = new FormMain ();
            frm.StartPosition = FormStartPosition.Manual;

            Application.Run (frm);
        }
Ejemplo n.º 3
0
        public FormLogView(FormMain parrent)
        {
            _parrent = parrent;

            InitializeComponent();
            InitializeMenu();

            workThread = new Thread(new ThreadStart(this.WorkFunction));
            workThread.Name = "Logger Thread";
            workThread.Priority = ThreadPriority.BelowNormal;
            workThread.Start();

            flag = new AutoResetEvent(false);
            _messageQueue = new Queue<string>();

            _log.LogLevel = EventEntryType.Debug;
            _log.NewMessage += new EventHandler<NewMessageEventArgs>(_log_NewMessage);
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Конструктор
        /// </summary>
        /// <param name="emu"></param>
        public FormSettings(FormMain frmParrent)
        {
            _frmParrent = frmParrent;
            _portsList = COMPortName.GetPortNames();

            InitializeComponent();

            cbConsultPort.SelectedIndexChanged += new EventHandler(cbPorts_SelectedIndexChanged);
            cbEmulatorPort.SelectedIndexChanged += new EventHandler(cbPorts_SelectedIndexChanged);

            InitializeMenu();

            InitializeConsult();
            UpdateConsultInterface();

            InitializeEmulator();

            LoadSettings();
            UpdateButtons();
        }