Exemplo n.º 1
0
        private void browseangle_Click(object sender, EventArgs e)
        {
            AngleForm af = new AngleForm();

            af.Setup(filterangle.GetResult(-1));
            if (af.ShowDialog() == DialogResult.OK)
            {
                filterangle.Text = af.Value.ToString();
            }
        }
Exemplo n.º 2
0
        // This shows the dialog
        // Returns the flags or the same flags when cancelled
        public static int ShowDialog(IWin32Window owner, int value)
        {
            int       result = value;
            AngleForm f      = new AngleForm();

            f.Setup(value);
            if (f.ShowDialog(owner) == DialogResult.OK)
            {
                result = f.Value;
            }
            f.Dispose();
            return(result);
        }