Пример #1
0
        public ActionResult DeleteConfirmed(string id)
        {
            tx tx = db.txes.Find(id);

            db.txes.Remove(tx);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Пример #2
0
 public ActionResult Edit([Bind(Include = "wallet,txid,date,incoming,value,coin")] tx tx)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tx).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(tx));
 }
Пример #3
0
        public ActionResult Create([Bind(Include = "wallet,txid,date,incoming,value,coin")] tx tx)
        {
            if (ModelState.IsValid)
            {
                db.txes.Add(tx);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(tx));
        }
Пример #4
0
        // GET: txes/Delete/5
        public ActionResult Delete(string id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            tx tx = db.txes.Find(id);

            if (tx == null)
            {
                return(HttpNotFound());
            }
            return(View(tx));
        }
Пример #5
0
        public CWEncode(CWExpert main_form)
        {
            MainForm = main_form;
            KeyerInit(MainForm.SetupForm.chkG59Iambic.Checked, (float)MainForm.SetupForm.udCWSpeed.Value);
            //TONE_SIZE = 48 * TONE_DELAY * Audio.SampleRate / 48000;
            time_base = 1200;
            wpm = cw_speed;
            ctime = time_base / wpm;                // dit time
            dottime = ctime / TONE_DELAY;
            dashtime = dottime * 3;
            Transmiter.osc.gen.Frequency = 0.0;
            Transmiter.cwt.osc.phase = 0.0;
            Transmiter.cwt.mon_osc.phase = 0.0;
            Transmiter.cwt.sr = Audio.SampleRate;
            Transmiter.cwt.osc.gen.Frequency = (TWOPI * tx_if_shift) / Transmiter.cwt.sr;
            Transmiter.cwt.mon_osc.gen.Frequency = (TWOPI * mon_frequency) / Transmiter.cwt.sr;
            MainForm.output_ring_buf.Restart();
            MainForm.mon_ring_buf.Restart();
            Transmiter = new tx();
            CreateTransmiter();
            zero_buffer = new ComplexF[2048];
            iq_buffer = new ComplexF[2048];
            mon_iq_buffer = new ComplexF[2048];
            cs_audio = (void*)0x0;
            cs_audio = NewCriticalSection();

            if (InitializeCriticalSectionAndSpinCount(cs_audio, 0x00000080) == 0)
            {
                MessageBox.Show("CriticalSection Failed", "Error!");
            }
        }
Пример #6
0
 IsCertified(tx, parentHeader) ? (true, string.Empty) : _notCertifiedFilter.IsAllowed(tx, parentHeader);