상속: System.Windows.Forms.Form
예제 #1
0
 public static void CalculateFlags(TextBox tb,Type data, String remove)
 {
     uint val = tb.Text.ToUInt32();
     FormCalculateFlags form = new FormCalculateFlags(data, val, "");
     form.ShowDialog();
     if (form.DialogResult == DialogResult.OK)
         tb.Text = form.Flags.ToString();
     form.Dispose();
 }
예제 #2
0
        public static void CalculateFlags(TextBox tb, Type data, String remove)
        {
            uint val = tb.Text.ToUInt32();
            FormCalculateFlags form = new FormCalculateFlags(data, val, "");

            form.ShowDialog();
            if (form.DialogResult == DialogResult.OK)
            {
                tb.Text = form.Flags.ToString();
            }
            form.Dispose();
        }
예제 #3
0
        private void CalcProcFlags_Click(object sender, EventArgs e)
        {
            switch (((Button)sender).Name)
            {
            case "_bSqlSchool":
            {
                uint val = _tbSqlSchool.Text.ToUInt32();
                FormCalculateFlags form = new FormCalculateFlags(typeof(SpellSchoolsForProcs), val, "");
                form.ShowDialog(this);
                if (form.DialogResult == DialogResult.OK)
                {
                    _tbSqlSchool.Text = form.Flags.ToString();
                }
            }
            break;

            case "_bSqlProc":
            {
                uint val = _tbSqlProc.Text.ToUInt32();
                FormCalculateFlags form = new FormCalculateFlags(typeof(ProcFlags), val, "PROC_FLAG_");
                form.ShowDialog(this);
                if (form.DialogResult == DialogResult.OK)
                {
                    _tbSqlProc.Text = form.Flags.ToString();
                }
            }
            break;

            case "_bSqlProcEx":
            {
                uint val = _tbSqlProcEx.Text.ToUInt32();
                FormCalculateFlags form = new FormCalculateFlags(typeof(ProcFlagsEx), val, "PROC_EX_");
                form.ShowDialog(this);
                if (form.DialogResult == DialogResult.OK)
                {
                    _tbSqlProcEx.Text = form.Flags.ToString();
                }
            }
            break;
            }
        }
예제 #4
0
        private void CalcProcFlags_Click(object sender, EventArgs e)
        {
            switch (((Button)sender).Name)
            {
            case "_bSqlSchool":
            {
                FormCalculateFlags.CalculateFlags(_tbSqlSchool, typeof(SpellSchools), "");
            }
            break;

            case "_bSqlProc":
            {
                FormCalculateFlags.CalculateFlags(_tbSqlProc, typeof(ProcFlags), "PROC_FLAG_");
            }
            break;

            case "_bSqlProcEx":
            {
                FormCalculateFlags.CalculateFlags(_tbSqlProcEx, typeof(ProcFlagsEx), "PROC_EX_");
            }
            break;
            }
        }
예제 #5
0
 private void CalcProcFlags_Click(object sender, EventArgs e)
 {
     switch (((Button)sender).Name)
     {
         case "_bSqlSchool":
             {
                 uint val = _tbSqlSchool.Text.ToUInt32();
                 FormCalculateFlags form = new FormCalculateFlags(typeof(SpellSchoolsForProcs), val, "");
                 form.ShowDialog(this);
                 if (form.DialogResult == DialogResult.OK)
                     _tbSqlSchool.Text = form.Flags.ToString();
             }
             break;
         case "_bSqlProc":
             {
                 uint val = _tbSqlProc.Text.ToUInt32();
                 FormCalculateFlags form = new FormCalculateFlags(typeof(ProcFlags), val, "PROC_FLAG_");
                 form.ShowDialog(this);
                 if (form.DialogResult == DialogResult.OK)
                     _tbSqlProc.Text = form.Flags.ToString();
             }
             break;
         case "_bSqlProcEx":
             {
                 uint val = _tbSqlProcEx.Text.ToUInt32();
                 FormCalculateFlags form = new FormCalculateFlags(typeof(ProcFlagsEx), val, "PROC_EX_");
                 form.ShowDialog(this);
                 if (form.DialogResult == DialogResult.OK)
                     _tbSqlProcEx.Text = form.Flags.ToString();
             }
             break;
     }
 }