public Form_Audiobooker2() { InitializeComponent(); CustomLayout(); logicShit = new LogicShit(recordingControls.RecMan); LastFolder = Path.GetDirectoryName(Application.ExecutablePath); txtConsole.ReadOnly = true; txtConsole.BackColor = Color.White; txtConsole.TextChanged += (object sender, EventArgs e) => { txtConsole.SelectionStart = txtConsole.Text.Length; //Set the current caret position at the end txtConsole.ScrollToCaret(); //Now scroll it automatically }; recordingControls.setForm(this); recordingControls.setLogic(logicShit); recordingControls.PopulateDevices(); // ... remember and load the image from last session photographBookReader.PageLoaded += (string filename) => { Settings.Default.LastImageFile = filename; Settings.Default.Save(); }; if (!String.IsNullOrEmpty(Settings.Default.LastImageFile)) { photographBookReader.LoadImage(Settings.Default.LastImageFile); } logicShit.CurSegmentUpdated += () => { //segmentProgressView.CurSegment = logicShit.CurSegment; }; logicShit.XmlUpdated += () => { if (logicShit.AudiobookXml != null) { txtConsole.Text = logicShit.AudiobookXml.ToString(); } }; logicShit.SegmentTimeUpdated += (TimeSpan ts) => { //if (logicShit.AudiobookXml != null) //{ // txtConsole.Text = logicShit.AudiobookXml.ToString(); //} }; logicShit.RecStopped += () => { saveTheShit(); }; }
public Form_Audiobooker2() { InitializeComponent(); CustomLayout(); logicShit = new LogicShit(recordingControls.RecMan); LastFolder = Path.GetDirectoryName(Application.ExecutablePath); txtConsole.ReadOnly = true; txtConsole.BackColor = Color.White; txtConsole.TextChanged += (object sender, EventArgs e) => { txtConsole.SelectionStart = txtConsole.Text.Length; //Set the current caret position at the end txtConsole.ScrollToCaret(); //Now scroll it automatically }; recordingControls.setForm(this); recordingControls.setLogic(logicShit); recordingControls.PopulateDevices(); // ... remember and load the image from last session photographBookReader.PageLoaded += (string filename) => { Settings.Default.LastImageFile = filename; Settings.Default.Save(); }; if (!String.IsNullOrEmpty(Settings.Default.LastImageFile)) photographBookReader.LoadImage(Settings.Default.LastImageFile); logicShit.CurSegmentUpdated += () => { //segmentProgressView.CurSegment = logicShit.CurSegment; }; logicShit.XmlUpdated += () => { if (logicShit.AudiobookXml != null) { txtConsole.Text = logicShit.AudiobookXml.ToString(); } }; logicShit.SegmentTimeUpdated += (TimeSpan ts) => { //if (logicShit.AudiobookXml != null) //{ // txtConsole.Text = logicShit.AudiobookXml.ToString(); //} }; logicShit.RecStopped += () => { saveTheShit(); }; }
public Form_Audiobooker() { InitializeComponent(); logicShit = new LogicShit(recordingControls.RecMan); LastFolder = Path.GetDirectoryName(Application.ExecutablePath); setupSoundEffectsPanel(soundEffectPanel1, "1"); setupSoundEffectsPanel(soundEffectPanel2, "2"); setupSoundEffectsPanel(soundEffectPanel3, "3"); setupSoundEffectsPanel(soundEffectPanel4, "4"); setupSoundEffectsPanel(soundEffectPanel5, "5"); setupSoundEffectsPanel(soundEffectPanel6, "6"); setupSoundEffectsPanel(soundEffectPanel7, "7"); setupSoundEffectsPanel(soundEffectPanel8, "8"); setupSoundEffectsPanel(soundEffectPanel9, "9"); setupSoundEffectsPanel(soundEffectPanel10, "0"); this.KeyPreview = true; this.KeyDown += Form1_KeyDown; txtArea.ReadOnly = true; txtArea.BackColor = Color.White; txtArea.TextChanged += (object sender, EventArgs e) => { txtArea.SelectionStart = txtArea.Text.Length; //Set the current caret position at the end txtArea.ScrollToCaret(); //Now scroll it automatically }; recordingControls.setForm(this); recordingControls.PopulateDevices(); logicShit.CurSegmentUpdated += () => { segmentProgressView.CurSegment = logicShit.CurSegment; }; logicShit.XmlUpdated += () => { if (logicShit.AudiobookXml != null) { txtArea.Text = logicShit.AudiobookXml.ToString(); } }; logicShit.RecStopped += () => { saveTheShit(); }; #if (DEBUG_FNAMES) webBrowserControl.Url = new Uri(@"file:///C:/Users/mtemkine/Documents/mikhailshit/books/Pars_vite_et_reviens_tard_-_VargasFred.pdf"); #endif }