Exemplo n.º 1
0
        private void listView_gorev_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (yenilendi)
            {
                yenilendi = false;
                return;
            }
            int ID;

            if (listView_gorev.SelectedItems.Count > 0)
            {
                ID = Convert.ToInt32(listView_gorev.SelectedItems[0].SubItems[0].Text);
            }
            else
            {
                return;
            }
            Form_Hatirlatmalar_MBox mesaj = new Form_Hatirlatmalar_MBox(ID);

            if (DialogResult.Yes == mesaj.ShowDialog())
            {
                yenilendi = true;
                GorevleriListele(sonGoruntulenen);
            }
            else
            {
                yenilendi = false;
            }
        }
Exemplo n.º 2
0
        private void yeniGorevEkleToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form_Hatirlatmalar_MBox yeniGorev = new Form_Hatirlatmalar_MBox();

            if (Form_Hatirlatmalar_MBox.formAcikMi)
            {
                foreach (Form item in this.MdiParent.MdiChildren)
                {
                    if (item.Text == yeniGorev.Text)
                    {
                        item.BringToFront();
                    }
                }
            }
            else
            {
                yeniGorev.MdiParent = this.MdiParent;
                yeniGorev.Show();
            }
        }