示例#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 { }
        }