Esempio n. 1
0
 private void RedoShortcutItemActivated(object sender, QCompositeEventArgs e)
 {
     if (Designer.CanRedo)
     {
         Designer.Redo();
     }
     DocumentModel.Touch();
 }
Esempio n. 2
0
        private void GridCompositeItemActivated(object sender, QCompositeEventArgs e)
        {
            var composite = (QCompositeItem)sender;

            composite.Checked          = !composite.Checked;
            Settings.Default.PrintGrid = composite.Checked;
            Settings.Default.Save();
            RefreshDocument();
        }
Esempio n. 3
0
        private void qRibbonItemExecuteTask_ItemActivated(object sender, QCompositeEventArgs e)
        {
            var tasks = PmsService.Instance.GetTasks();

            if (tasks.Count == 0)
            {
                return;
            }

            Mediator.Mediator.Instance.NotifyColleagues(UI.SelectTask, tasks[tasks.Count - 1]);
        }
Esempio n. 4
0
 private void AppMenuButton_ItemActivated(object sender, QCompositeEventArgs e)
 {
     _fileForm.InitInformations();
     _fileForm.ShowDialog();
     if (_fileForm.ActionResult == FileForm.ActionTaken.New)
     {
         New();
     }
     else if (_fileForm.ActionResult == FileForm.ActionTaken.Open)
     {
         OpenFileByPath(_fileForm.FilePath);
     }
 }
Esempio n. 5
0
 private void panel1item2_ItemActivated(object sender, QCompositeEventArgs e)
 {
     if (jdwldokter == null)
     {
         jdwldokter             = new FormJadwalDokter();
         jdwldokter.MdiParent   = this;
         jdwldokter.FormClosed += new FormClosedEventHandler(FormJadwalDokter_FormClosed);
         jdwldokter.Show();
     }
     else
     {
         jdwldokter.Activate();
     }
 }
Esempio n. 6
0
 private void qRibbonItem2_ItemActivated(object sender, QCompositeEventArgs e)
 {
     if (obt == null)
     {
         obt             = new FormObat();
         obt.MdiParent   = this;
         obt.FormClosed += new FormClosedEventHandler(FormObat_FormClosed);
         obt.Show();
     }
     else
     {
         obt.Activate();
     }
 }
Esempio n. 7
0
 private void qRibbonItem3_ItemActivated(object sender, QCompositeEventArgs e)
 {
     if (tindakan == null)
     {
         tindakan             = new FormTindakan();
         tindakan.MdiParent   = this;
         tindakan.FormClosed += new FormClosedEventHandler(FormTindakan_FormClosed);
         tindakan.Show();
     }
     else
     {
         tindakan.Activate();
     }
 }
Esempio n. 8
0
 private void qRibbonItem4_ItemActivated(object sender, QCompositeEventArgs e)
 {
     if (kmr == null)
     {
         kmr             = new FormKamar();
         kmr.MdiParent   = this;
         kmr.FormClosed += new FormClosedEventHandler(FormKamar_FormClosed);
         kmr.Show();
     }
     else
     {
         kmr.Activate();
     }
 }
Esempio n. 9
0
 private void qRibbonItem5_ItemActivated(object sender, QCompositeEventArgs e)
 {
     if (psn == null)
     {
         psn             = new FormPasien();
         psn.MdiParent   = this;
         psn.FormClosed += new FormClosedEventHandler(FormPasien_FormClosed);
         psn.Show();
     }
     else
     {
         psn.Activate();
     }
 }
Esempio n. 10
0
 private void panel1item1_ItemActivated(object sender, QCompositeEventArgs e)
 {
     if (dktr == null)
     {
         dktr             = new FormDokter();
         dktr.MdiParent   = this;
         dktr.FormClosed += new FormClosedEventHandler(FormDokter_FormClosed);
         dktr.Show();
     }
     else
     {
         dktr.Activate();
     }
 }
Esempio n. 11
0
 private void qRibbonPanel2_ItemActivated(object sender, QCompositeEventArgs e)
 {
     if (usr == null)
     {
         usr             = new FormUser();
         usr.MdiParent   = this;
         usr.FormClosed += new FormClosedEventHandler(FormUser_FormClosed);
         usr.Show();
     }
     else
     {
         usr.Activate();
     }
 }
Esempio n. 12
0
 private void mnNV_DieuChuyenBoPhanSuDung_ItemActivated(object sender, QCompositeEventArgs e)
 {
     VNA_Project.NGHIEPVU.DieuChuyenBoPhanSuDungFolder.frmNVDieuChuyenBoPhanSuDung frm = new NGHIEPVU.DieuChuyenBoPhanSuDungFolder.frmNVDieuChuyenBoPhanSuDung();
     frm.ShowDialog();
 }
Esempio n. 13
0
 private void mnDM_ThietBi_ItemActivated(object sender, QCompositeEventArgs e)
 {
     DM_ThietBi();
 }
Esempio n. 14
0
 private void mnDM_PhanNhomTS_ItemActivated(object sender, QCompositeEventArgs e)
 {
     DM_PhanNhomTS();
 }
Esempio n. 15
0
 private void mnDM_BoPhanHachToan_ItemActivated(object sender, QCompositeEventArgs e)
 {
     DM_BoPhanHachToan();
 }
Esempio n. 16
0
 private void mnDM_LyDoTangGiamTS_ItemActivated(object sender, QCompositeEventArgs e)
 {
     DM_LyDoTangGiamTS();
 }
Esempio n. 17
0
 private void PrintCompositeItemItemActivated(object sender, QCompositeEventArgs e)
 {
     _diagramForm.Print(this, true);
     RefreshDocument();
 }
Esempio n. 18
0
 private void mnDM_PhanNhomTS_ItemActivated(object sender, QCompositeEventArgs e)
 {
     DM_PhanNhomTS();
 }
Esempio n. 19
0
 private void CloseCompositeItemActivated(object sender, QCompositeEventArgs e)
 {
     Close();
 }
Esempio n. 20
0
        private void qRibbonItemOpenPart_ItemActivated(object sender, QCompositeEventArgs e)
        {
            SelectReportControl selectReportControl = new SelectReportControl();

            selectReportControl.ShowDialog(this);
        }
Esempio n. 21
0
 private void StretchCompositeItemActivated(object sender, QCompositeEventArgs e)
 {
     var composite = (QCompositeItem)sender;
     composite.Checked = !composite.Checked;
     Settings.Default.PrintAllowStretch = composite.Checked;
     Settings.Default.Save();
     RefreshDocument();
 }
Esempio n. 22
0
 private void SettingsCompositeItemActivated(object sender, QCompositeEventArgs e)
 {
     _diagramForm.Print(this, false);
     RefreshDocument();
 }
Esempio n. 23
0
 private void PrintCompositeItemItemActivated(object sender, QCompositeEventArgs e)
 {
     _diagramForm.Print(this, true);
     RefreshDocument();
 }
Esempio n. 24
0
 private void CutElementShortcutItemActivated(object sender, QCompositeEventArgs e)
 {
     Designer.Cut();
 }
Esempio n. 25
0
 private void qRibbon1_ItemActivated_1(object sender, QCompositeEventArgs e)
 {
 }
Esempio n. 26
0
 private void qRibbonItemNewPart_ItemActivated(object sender, QCompositeEventArgs e)
 {
     Mediator.Mediator.Instance.NotifyColleagues(UI.CreatePart, null);
 }
Esempio n. 27
0
 private void btnDMThietBi_ItemActivated(object sender, QCompositeEventArgs e)
 {
     DM_ThietBi();
 }
Esempio n. 28
0
        private void qRibbonItemNewTask_ItemActivated(object sender, QCompositeEventArgs e)
        {
            TaskForm taskForm = new TaskForm();

            taskForm.ShowDialog(this);
        }
Esempio n. 29
0
 private void btnDMLoaiTS_ItemActivated(object sender, QCompositeEventArgs e)
 {
     DM_LoaiTS();
 }
Esempio n. 30
0
 private void CloseCompositeItemActivated(object sender, QCompositeEventArgs e)
 {
     Close();
 }
Esempio n. 31
0
        void oneItem_ItemActivated(object sender, QCompositeEventArgs e)
        {
            LayoutManager LayMan = LayoutManager.Current;

            LayMan.CurrentLayout = ((QRibbonItem)sender).Title;
        }
Esempio n. 32
0
 private void SettingsCompositeItemActivated(object sender, QCompositeEventArgs e)
 {
     _diagramForm.Print(this, false);
     RefreshDocument();
 }
Esempio n. 33
0
        private void qRibbonItemMockTool_ItemActivated(object sender, QCompositeEventArgs e)
        {
            MockMeasureToolForm frm = new MockMeasureToolForm();

            frm.Show(this);
        }
Esempio n. 34
0
 private void btnNVTaiSan_ItemActivated(object sender, QCompositeEventArgs e)
 {
     VNA_Project.DANHMUC.TaiSanFolder.frmDMTaiSan frm = new DANHMUC.TaiSanFolder.frmDMTaiSan();
     frm.ShowDialog();
 }
Esempio n. 35
0
 private void btnDMLoaiTS_ItemActivated(object sender, QCompositeEventArgs e)
 {
     DM_LoaiTS();
 }
Esempio n. 36
0
 private void mnDM_NguonVon_ItemActivated(object sender, QCompositeEventArgs e)
 {
     DM_NguonVon();
 }
Esempio n. 37
0
 private void mnDM_NguonVon_ItemActivated(object sender, QCompositeEventArgs e)
 {
     DM_NguonVon();
 }
Esempio n. 38
0
 private void mnDM_PhanXuong_ItemActivated(object sender, QCompositeEventArgs e)
 {
     DM_PhanXuong();
 }
Esempio n. 39
0
 private void mnNV_KhaiBaoThoiKhauHaoTaiSan_ItemActivated(object sender, QCompositeEventArgs e)
 {
     VNA_Project.NGHIEPVU.ThoiKhauHaoTaiSanFolder.frmNVThoiKhauHaoTaiSan frm = new NGHIEPVU.ThoiKhauHaoTaiSanFolder.frmNVThoiKhauHaoTaiSan();
     frm.ShowDialog();
 }
Esempio n. 40
0
 private void mnNV_DieuChinhGiaTriTaiSan_ItemActivated(object sender, QCompositeEventArgs e)
 {
     VNA_Project.NGHIEPVU.DieuChinhGiaTriTaiSanFolder.frmNVDieuChinhGiaTriTaiSan frm = new NGHIEPVU.DieuChinhGiaTriTaiSanFolder.frmNVDieuChinhGiaTriTaiSan();
     frm.ShowDialog();
 }
Esempio n. 41
0
 private void mnDM_BoPhanHachToan_ItemActivated(object sender, QCompositeEventArgs e)
 {
     DM_BoPhanHachToan();
 }
Esempio n. 42
0
 private void mnNV_KhaiBaoGiamTaiSan_ItemActivated(object sender, QCompositeEventArgs e)
 {
     VNA_Project.NGHIEPVU.GiamTaiSanCoDinhFolder.frmNVGiamTaiSanCoDinh frm = new NGHIEPVU.GiamTaiSanCoDinhFolder.frmNVGiamTaiSanCoDinh();
     frm.ShowDialog();
 }
Esempio n. 43
0
 private void mnDM_Phi_ItemActivated(object sender, QCompositeEventArgs e)
 {
     DM_Phi();
 }
Esempio n. 44
0
 private void btnDMBoPhanSDTSCD_ItemActivated(object sender, QCompositeEventArgs e)
 {
     DM_BoPhanSDTSCD();
 }
Esempio n. 45
0
 private void mnDM_BoPhanSDTSCD_ItemActivated(object sender, QCompositeEventArgs e)
 {
     DM_BoPhanSDTSCD();
 }
Esempio n. 46
0
 private void btnDMLyDoTangGiamTS_ItemActivated(object sender, QCompositeEventArgs e)
 {
     DM_LyDoTangGiamTS();
 }
Esempio n. 47
0
 private void mnNV_DieuChuyenBoPhanSuDung_ItemActivated(object sender, QCompositeEventArgs e)
 {
     VNA_Project.NGHIEPVU.DieuChuyenBoPhanSuDungFolder.frmNVDieuChuyenBoPhanSuDung frm = new NGHIEPVU.DieuChuyenBoPhanSuDungFolder.frmNVDieuChuyenBoPhanSuDung();
     frm.ShowDialog();
 }