예제 #1
0
 private void btn_addDestination_Click(object sender, EventArgs e)
 {
     try
     {
         using (MetaData.CLL.FrmAddDestinations destination = new MetaData.CLL.FrmAddDestinations(USERNAME))
         {
             destination.WindowState = FormWindowState.Normal;
             destination.ShowDialog();
             this.grd_selectDestination.DataSource = null;
             this.grd_selectDestination.Refresh();
             this.fillData();
         }
     }
     catch (Exception ex)
     {
         COM_MESSAGE.exceptionMessage(ex.Message);
     }
 }
예제 #2
0
        private void btn_addDestination_Click(object sender, EventArgs e)
        {
            bool isFormOpen = false;

            MetaData.CLL.FrmAddDestinations addDestination = new MetaData.CLL.FrmAddDestinations(lbl_loggedUser.Text);

            isFormOpen = windowOpenCheck(addDestination.Name);

            if (isFormOpen)
            {
                addDestination.BringToFront();
            }
            else
            {
                addDestination.MdiParent = this;
                this.splitContainer1.Panel2.Controls.Add(addDestination);

                addDestination.Show();
            }
        }