private void HomeForm_Load(object sender, EventArgs e)
 {
     if (new Login().ShowDialog() == DialogResult.OK)
     {
         bar.Caption = "Holgeldiniz " + SessionHelper.member.Name.ToUpper();
         Drafts form = new Drafts();
         form.MdiParent = this;
         form.Show();
         form.BringToFront();
     }
 }
        private void btnDrafts_ItemClick(object sender, ItemClickEventArgs e)
        {
            bool isexist = false;

            foreach (var form in this.xtraTabbedMdiManager1.MdiParent.MdiChildren)
            {
                if (form is Drafts)
                {
                    form.BringToFront();
                    isexist = true;
                    break;
                }
            }
            if (!isexist)
            {
                Drafts form = new Drafts();
                form.MdiParent = this;
                form.Show();
                form.BringToFront();
            }
        }