Пример #1
0
        private void pcbShowInWondow_Click(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;
            timer1.Start();

            foreach (Form form in (ReadOnlyCollectionBase)Application.OpenForms)
            {
                if (form is frmProjectFullInfo && (long)form.Tag == this.project.id)
                {
                    form.Focus();
                    return;
                }
            }
            frmProjectFullInfo frmProjectFullInfo = new frmProjectFullInfo(this.project.id, this.project.from.profile_id);

            frmProjectFullInfo.Tag = (object)this.project.id;
            ((Control)frmProjectFullInfo).Show();
        }
Пример #2
0
        private void pcbShowInWondow_Click(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;
            timer1.Start();

            foreach (Form form in (ReadOnlyCollectionBase)Application.OpenForms)
            {
                if (form is frmProjectFullInfo && (long)form.Tag == this.project.id)
                {
                    form.Focus();
                    return;
                }
            }
            frmProjectFullInfo frmProjectFullInfo = new frmProjectFullInfo(this.project.id, this.project.from.profile_id);
            frmProjectFullInfo.Tag = (object)this.project.id;
            ((Control)frmProjectFullInfo).Show();
        }