コード例 #1
0
ファイル: TapePunchForm.cs プロジェクト: LeNinjaHD/WinTlx
        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
ファイル: TapePunchManager.cs プロジェクト: LeNinjaHD/WinTlx
        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
ファイル: DebugForm.cs プロジェクト: detlefgerhardt/WinTlx
        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          = "";
        }