Exemple #1
0
        private void NewFont_Click(object sender, EventArgs e)
        {
            QueryNewName qnn = new QueryNewName("Enter a name for this font...");

            qnn.ShowDialog();
            if (qnn.DialogResult == DialogResult.OK)
            {
                font_tracker f = FontEditor.GetFontTracker(qnn.textBox1.Text);
                this.FontList.DataSource = null;
                this.FontList.DataSource = fonts;
            }
            qnn.Dispose();
        }
Exemple #2
0
        private void buttonNewMacro_Click(object sender, EventArgs e)
        {
            QueryNewName name = new QueryNewName("Enter New Session Macro Name");

            name.ShowDialog();
            if (name.DialogResult == DialogResult.OK)
            {
                DataRow row = table1.NewRow();
                row[xperdex.classes.XDataTable.Name(table1)] = name.textBox1.Text;
                row.EndEdit();
                table1.Rows.Add(row);
                table1.AcceptChanges();
            }
        }