/*display the oath dialog*/
 private void oathToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using (var dialog = new OathDialog())
     {
         dialog.StartPosition = FormStartPosition.Manual;
         dialog.Location = new Point(this.Location.X + this.Width,
             this.Location.Y);
         dialog.ShowDialog();
     }
 }
Beispiel #2
0
        //Override of Oath Tool Strip Menu Item Handler
        public override void oathToolStripMenuItem_Click(object sender, EventArgs e)
        {
            OathDialog oathDlg = new OathDialog();

            oathDlg.Owner = this;

            try
            {
                oathDlg.Show();
            } catch
            {
                throw new NotSupportedException("Oath Dialog not supported");
            }
        }
Beispiel #3
0
        private void oathToolStripMenuItem_Click(object sender, EventArgs e)
        {
            OathDialog dlg = new OathDialog();

            foreach (Form fm in Application.OpenForms)
            {
                if (fm.Name == "OathDialog")
                {
                    return;
                }
            }
            dlg.Owner         = this;
            dlg.StartPosition = FormStartPosition.Manual;
            dlg.SetDesktopLocation((this.DesktopLocation.X - dlg.Width), this.DesktopLocation.Y);
            dlg.Show();
        }