Beispiel #1
0
        CreateProjectVD createPrForm; //dhmiourgoume anafora ths formas Create project

        //Auth h function einai gia na anoigei apo opoiadhpote klash h create project
        public void CreateFromEverywhere()
        {
            if (createPrForm == null)//elegxos gia to an einai hdh anoixth h forma
            {
                createPrForm             = new CreateProjectVD();
                createPrForm.MdiParent   = this;
                createPrForm.Tag         = "mdi_child";
                createPrForm.FormClosed += new FormClosedEventHandler(createPr_FormClosed);
                createPrForm.Show();
            }
            else
            {
                createPrForm.Activate();//an einai anoixth thn kanei focus se periptwsh pou einai sto background
            }
        }
Beispiel #2
0
 private void createPr_FormClosed(object sender, FormClosedEventArgs e)//otan kleinoume th forma kanoume thn anafora ish me null gia na mporoume na thn ksanaanoiksoume
 {
     createPrForm = null;
 }