示例#1
0
        public TapePunchForm(Rectangle position)
        {
            InitializeComponent();

            _parentWindowsPosition = position;

            LanguageManager.Instance.LanguageChanged += LanguageChanged;
            LanguageChanged();

            _itelex = ItelexProtocol.Instance;

            _tapePunch          = TapePunchManager.Instance;
            _tapePunch.Punched += TapePunch_Punched;
            _tapePunch.Changed += TapePunch_Changed;
            _tapePunch.SetPuncherLinesHorizontal(PunchedTapePb.Width);
            RecvCbSet(_tapePunch.PuncherOn);

            EditCb.Enabled    = true;
            _tapePunch.EditOn = false;
            EditCbSet(false);

            //CropStartBtn.Enabled = false;
            //CropEndBtn.Enabled = false;

            TapePositionSb.SmallChange    = 1;
            TapePositionSb.LargeChange    = 1;
            TapePositionSb.DelayedScroll += TapePositionSb_DelayedScroll;
        }
示例#2
0
        private TapePunchManager()
        {
            _itelex = ItelexProtocol.Instance;
            _itelex.BaudotSendRecv += BaudotSendRecvHandler;

            _buffer       = new List <PunchLine>();
            _undoBuffer   = new List <List <PunchLine> >();
            PuncherOn     = true;
            _updateActive = true;
        }
示例#3
0
        private TextEditorManager()
        {
            _configManager = ConfigManager.Instance;

            _bufferManager = BufferManager.Instance;

            _itelex           = ItelexProtocol.Instance;
            _itelex.Received += Itelex_Received;
            _itelex.Dropped  += Itelex_Dropped;

            ResetUndo();
            CharWidth = DEFAULT_LINE_LENGTH;
            Text      = "";
            Saved     = true;
            Filename  = null;
        }
示例#4
0
        public DebugForm(Rectangle?position = null)
        {
            _parentWindowsPosition = position;

            InitializeComponent();

            _itelex         = ItelexProtocol.Instance;
            _itelex.Update += Itelex_Update;

            _bufferManager = BufferManager.Instance;

            ScrollCb.Checked        = true;
            ShowHeartbeatCb.Checked = true;
            ShowAckCb.Checked       = true;
            SendAckTb.Text          = "";
            RecvBufTb.Text          = "";
        }