Esempio n. 1
0
        public MainForm()
        {
            IrssLog.LogLevel = IrssLog.Level.Debug;
            IrssLog.Open("Abstractor.log");

            InitializeComponent();

            _addStatusLine = AddStatusLine;
            _setDevices    = SetDevices;
            _remoteEvent   = RemoteEvent;

            comboBoxComputer.Items.Clear();
            comboBoxComputer.Items.Add("localhost");

            List <string> networkPCs = Network.GetComputers(false);

            if (networkPCs != null)
            {
                comboBoxComputer.Items.AddRange(networkPCs.ToArray());
            }

            comboBoxComputer.Text = _serverHost;

            ClearMap();

            /*
             * DataTable table = new DataTable("RemoteTable");
             *
             * DataColumn column;
             *
             * column = new DataColumn("RawCode", typeof(string));
             * column.Caption = "Raw Code";
             * column.ColumnMapping = MappingType.Attribute;
             * column.DefaultValue = String.Empty;
             * column.ReadOnly = false;
             * column.Unique = true;
             * table.Columns.Add(column);
             *
             * column = new DataColumn("AbstractButton", typeof(string));
             * column.Caption = "Abstract Button";
             * column.ColumnMapping = MappingType.Attribute;
             * column.DefaultValue = String.Empty;
             * column.ReadOnly = false;
             * column.Unique = false;
             * table.Columns.Add(column);
             *
             * string[] names = Enum.GetNames(typeof(MceButton));
             * foreach (string name in names)
             * {
             * int button = (int)Enum.Parse(typeof(MceButton), name);
             *
             * table.Rows.Add(button.ToString(), name);
             * }
             *
             * //table.WriteXmlSchema(AbstractRemoteSchemaFile);
             *
             * table.WriteXml("Template.xml");
             */
        }
Esempio n. 2
0
        private void MainForm_FormClosing(object sender, FormClosingEventArgs e)
        {
            buttonDisconnect_Click(null, null);

            _addStatusLine = null;
            _setDevices    = null;
            _remoteEvent   = null;

            IrssLog.Close();
        }
Esempio n. 3
0
    public MainForm()
    {
      IrssLog.LogLevel = IrssLog.Level.Debug;
      IrssLog.Open("Abstractor.log");

      InitializeComponent();

      _addStatusLine = AddStatusLine;
      _setDevices = SetDevices;
      _remoteEvent = RemoteEvent;

      comboBoxComputer.Items.Clear();
      comboBoxComputer.Items.Add("localhost");

      List<string> networkPCs = Network.GetComputers(false);
      if (networkPCs != null)
        comboBoxComputer.Items.AddRange(networkPCs.ToArray());

      comboBoxComputer.Text = _serverHost;

      ClearMap();
      /*
      DataTable table = new DataTable("RemoteTable");

      DataColumn column;

      column = new DataColumn("RawCode", typeof(string));
      column.Caption = "Raw Code";
      column.ColumnMapping = MappingType.Attribute;
      column.DefaultValue = String.Empty;
      column.ReadOnly = false;
      column.Unique = true;
      table.Columns.Add(column);

      column = new DataColumn("AbstractButton", typeof(string));
      column.Caption = "Abstract Button";
      column.ColumnMapping = MappingType.Attribute;
      column.DefaultValue = String.Empty;
      column.ReadOnly = false;
      column.Unique = false;
      table.Columns.Add(column);

      string[] names = Enum.GetNames(typeof(MceButton));
      foreach (string name in names)
      {
        int button = (int)Enum.Parse(typeof(MceButton), name);

        table.Rows.Add(button.ToString(), name);
      }

      //table.WriteXmlSchema(AbstractRemoteSchemaFile);

      table.WriteXml("Template.xml");
      */
    }
Esempio n. 4
0
    private void MainForm_FormClosing(object sender, FormClosingEventArgs e)
    {
      buttonDisconnect_Click(null, null);

      _addStatusLine = null;
      _setDevices = null;
      _remoteEvent = null;

      IrssLog.Close();
    }