public Steal_a_Feel(ref GeniePlugin.Interfaces.IHost host, string sDBLocation)
        {
            InitializeComponent();
            try
            {
                oDS = new DataSet();
                sSQLConn = new SQLiteConnection();

                oDS.Tables.Add("AllData");
                _host = host;

                _host.EchoText(sDBLocation);
                this.tbContainer.Text = this._host.get_Variable("StealingContainer");
                this.cbMark.Checked = this._host.get_Variable("StealingMark") == String.Empty ? false : true;
                this.cbPerceiveHealth.Checked = this._host.get_Variable("StealingPerceiveHealth") == String.Empty ? false : true;
                this.cbPerceive.Checked = this._host.get_Variable("StealingPerceive") == String.Empty ? false : true;
                this.sSQLConn.ConnectionString = "DataSource= " + sDBLocation;
                SQLiteCommand cmd = new SQLiteCommand(sSQLConn);
                cmd.CommandType = CommandType.Text;
                cmd.CommandText = "select * from ItemList";
                SQLiteDataAdapter sDA = new SQLiteDataAdapter(cmd);
                sSQLConn.Open();
                DataSet ds = new DataSet();
                sDA.Fill(ds.Tables["AllData"]);
                sSQLConn.Close();
                sSQLConn.Dispose();
                cmd.Dispose();

                this.comboBox1.DataSource = oDS.Tables[0].Rows[1];
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
 public PluginConfig(GeniePlugin.Interfaces.IHost Host, GeniePlugin.Interfaces.IPlugin PlugIn)
 {
     _host = Host;
     _plugin = PlugIn;
     _configFile = new XmlDocument();
     _configName = _plugin.Name.Replace(" ", "_");
     _fileName = _configName + ".xml";
     _filePath = Application.StartupPath;
     if (_filePath != "\\")
         _filePath += "\\";
     _filePath += "Plugins\\";
     _fullPath = _filePath + _fileName;
 }
        public PluginLog(GeniePlugin.Interfaces.IHost Host, GeniePlugin.Interfaces.IPlugin PlugIn)
        {
            _host = Host;
            _plugin = PlugIn;
            _logName = _plugin.Name.Replace(" ", "_");
            _fileName = _logName + ".log";
            _filePath = Application.StartupPath;
            if (_filePath != "\\")
                _filePath += "\\";
            _filePath += "Logs\\";
            _fullPath = _filePath + _fileName;

            _logGameTime = false;
            _clearLogAtStart = false;
            _newLogAtStart = false;
            _useTitleSeparator = true;

            _titleSeparator = new String('=',70);
            _logStarted = false;
        }
        public frmEXPTracker(ref GeniePlugin.Interfaces.IHost host)
        {
            InitializeComponent();

            _host = host;
        }
Esempio n. 5
0
        public frmEXPTracker(ref GeniePlugin.Interfaces.IHost host)
        {
            InitializeComponent();

            _host = host;
        }