Exemple #1
0
        public SALicenseControl()
        {
            InitializeComponent();
            ListInitialize();

            SALicense sa = new SALicense();
            this.textBoxHostID.Text = sa.HostID;

            this.openFileDialog.Filter = Translator.Instance.T("���֤�ļ�") + " (*.xml)|*.xml";
            this.openFileDialog.Title = Translator.Instance.T("�������֤");
        }
Exemple #2
0
        public SALicenseControl()
        {
            InitializeComponent();
            ListInitialize();

            SALicense sa = new SALicense();

            this.textBoxHostID.Text = sa.HostID;

            this.openFileDialog.Filter = Translator.Instance.T("许可证文件") + " (*.xml)|*.xml";
            this.openFileDialog.Title  = Translator.Instance.T("导入许可证");
        }
Exemple #3
0
        private void ListAdd(SALicense lic)
        {
            Table table = this.tableModules;                   // The Table control on a form - already initialised

            lic.Load();
            Row row = new Row(
                new Cell[] {
                new Cell(lic.Product),
                new Cell(lic.Version),
                new Cell(lic.Username),
                new Cell(lic.Message)
            }
                );

            row.Tag = lic;
            table.TableModel.Rows.Add(row);
        }
Exemple #4
0
        private void ListUpdate()
        {
            Table table = this.tableModules;                   // The Table control on a form - already initialised

            foreach (Row row in table.TableModel.Rows)
            {
                SALicense sa = row.Tag as SALicense;
                if (sa != null)
                {
                    row.Cells[0].Text = sa.Product;
                    row.Cells[1].Text = sa.Version;
                    row.Cells[2].Text = sa.Username;
                    row.Cells[3].Text = sa.Message;
                }
            }
            table.ColumnModel.ResizeColumnWidth();
        }
Exemple #5
0
 private void ListAdd(SALicense lic)
 {
     Table table = this.tableModules;       // The Table control on a form - already initialised
     lic.Load();
     Row row = new Row(
         new Cell[] {
             new Cell(lic.Product),
             new Cell(lic.Version),
             new Cell(lic.Username),
             new Cell(lic.Message)
         }
     );
     row.Tag = lic;
     table.TableModel.Rows.Add(row);
 }