Пример #1
0
 private void bankKontoudtogToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (!FocusChild("Bank kontoudtog"))
     {
         FrmBankkontoudtog m_Bankkontoudtog = new FrmBankkontoudtog();
         m_Bankkontoudtog.MdiParent = this;
         m_Bankkontoudtog.Show();
     }
 }
Пример #2
0
        private void cmdKopier_Click(object sender, EventArgs e)
        {
            FrmMain      frmMain      = this.ParentForm as FrmMain;
            Tblbankkonto recBankkonto = null;

            try
            {
                FrmBankkontoudtog frmBankkontoudtog = frmMain.GetChild("Bank kontoudtog") as FrmBankkontoudtog;
                recBankkonto = frmBankkontoudtog.GetrecBankkonto();
            }
            catch { }

            try
            {
                FrmNyekladder frmNyekladder = frmMain.GetChild("Nye kladder") as FrmNyekladder;
                Tblbilag      recBilag      = this.tblbilagBindingSource.Current as Tblbilag;
                frmNyekladder.AddNyKladde(recBilag, recBankkonto);
            }
            catch { }
        }