Пример #1
0
 private void nyeKladderToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (!FocusChild("Nye Kladder"))
     {
         FrmNyekladder m_frmNyekladder = new FrmNyekladder();
         m_frmNyekladder.MdiParent = this;
         m_frmNyekladder.Show();
     }
 }
Пример #2
0
        private void cmdPrivat_Click(object sender, EventArgs e)
        {
            FrmMain frmMain = this.ParentForm as FrmMain;

            try
            {
                FrmNyekladder frmNyekladder = frmMain.GetChild("Nye kladder") as FrmNyekladder;
                tbltemplate   recTemplate   = this.tbltemplateBindingSource.Current as tbltemplate;
                tblbankkonto  recBankkonto  = this.tblbankkontoBindingSourceUafstemte.Current as tblbankkonto;
                frmNyekladder.AddNyTemplateKladde(recTemplate, recBankkonto);
            }
            catch { }
        }
Пример #3
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 { }
        }