Exemple #1
0
 public LogOptions()
 {
     this.InitializeComponent();
     this._settingsPersister          = new SettingsPersisterTrunker();
     this._trunkerConfig              = this._settingsPersister.readConfig();
     this._trunkLoggerData            = new TrunkerLogger();
     this.guideLabel.Text             = "Guide:" + Environment.NewLine + "%t = targetlabel" + Environment.NewLine + "%tid = targetid" + Environment.NewLine + "%s = sourcelabel" + Environment.NewLine + "%sid = sourceid" + Environment.NewLine + "%f = frequency (Hz)" + Environment.NewLine + "%fk  = frequency (kHz)" + Environment.NewLine + "%fm  = frequency (MHz)" + Environment.NewLine + "%a = action" + Environment.NewLine + "%r = receiver";
     this.guideLabel2.Text            = "To filter strings based on variable availabity, use brackets. Please try some presets from the dropdown list above, as well as the simulator for examples on how this works." + Environment.NewLine + "Nested filters are not currently supported." + Environment.NewLine + "Only works on %tid, %s, and %sid.";
     this.logSimulation.SelectedIndex = 0;
     this.logStyle.Text        = (this._trunkerConfig[0].logStyle ?? "%t %fm MHz");
     this.parkedString.Text    = (this._trunkerConfig[0].parkedStr ?? "Parked");
     this.unkString.Text       = (this._trunkerConfig[0].unknownSrcStr ?? "Unknown");
     this.ignoreParked.Checked = this._trunkerConfig[0].ignoreParked;
 }
Exemple #2
0
        private static string[] getSettings()
        {
            SettingsPersisterTrunker settingsPersisterTrunker = new SettingsPersisterTrunker();
            List <TrunkerSettings>   list = settingsPersisterTrunker.readConfig();
            string text         = list[0].logStyle ?? "%t %fm MHz";
            string text2        = list[0].parkedStr ?? "Parked";
            string text3        = list[0].unknownSrcStr ?? "Unknown";
            bool   ignoreParked = list[0].ignoreParked;

            return(new string[4]
            {
                text,
                text2,
                text3,
                ignoreParked.ToString()
            });
        }
 public TrunkerPanel(ISharpControl control, TrunkerPlugin _parentplug)
 {
     this.InitializeComponent();
     this._version          = Assembly.GetExecutingAssembly().GetName().Version.ToString() + " ZefieMod";
     this._plugin           = _parentplug;
     this._controlInterface = control;
     this._cachedAudioGain  = this._controlInterface.AudioGain;
     this._controlInterface.PropertyChanged += this._controlInterface_PropertyChanged;
     this._fftSpectrum       = new byte[this._controlInterface.FFTResolution];
     this._settingsPersister = new SettingsPersisterTrunker();
     this._trunkerConfig     = this._settingsPersister.readConfig();
     this._trunkLoggerData   = new TrunkerLogger();
     this.setVersion();
     this._sdrsharp_rev_1133 = this.isRev1133orBetter;
     this.ProcessSavedSettings();
     this.initializing = false;
 }