Esempio n. 1
0
        private void ToolBarMain_ButtonClick(object sender, OpenDental.UI.ODToolBarButtonClickEventArgs e)
        {
            switch (e.Button.Tag.ToString())
            {
            case "Add":
                Add_Click();
                break;

            case "Edit":
                Edit_Click();
                break;

            case "Close":
                Close();
                break;

            case "Export":
                Export_Click();
                break;
            }

            /*	case "Fwd":
             *              OnFwd_Click();
             *              break;
             *
             * }*/
        }
Esempio n. 2
0
        private void ToolBarMain_ButtonClick(object sender, OpenDental.UI.ODToolBarButtonClickEventArgs e)
        {
            //MessageBox.Show(e.Button.Tag.ToString());
            switch (e.Button.Tag.ToString())
            {
            case "Print":
                Print_Click();
                break;

            case "PDF":
                PDF_Click();
                break;

            case "Export":
                Export_Click();
                break;

            case "Back":
                Back_Click();
                break;

            case "Fwd":
                Fwd_Click();
                break;

            case "Zoom":
                Zoom_Click();
                break;

            case "Close":
                Close();
                break;
            }
        }
Esempio n. 3
0
        private void ToolBarMain_ButtonClick(object sender, OpenDental.UI.ODToolBarButtonClickEventArgs e)
        {
            switch (e.Button.Tag.ToString())
            {
            case "Add":
                Add_Click();
                break;

            case "Reconcile":
                Reconcile_Click();
                break;

            case "Print":
                //The reason we are using a delegate and BeginInvoke() is because of a Microsoft bug that causes the Print Dialog window to not be in focus
                //when it comes from a toolbar click.
                //https://social.msdn.microsoft.com/Forums/windows/en-US/681a50b4-4ae3-407a-a747-87fb3eb427fd/first-mouse-click-after-showdialog-hits-the-parent-form?forum=winforms
                ToolBarClick toolClick = Print_Click;
                this.BeginInvoke(toolClick);
                break;

            case "Close":
                this.Close();
                break;
            }
        }
Esempio n. 4
0
        /*//I don't think we need this:
         * ///<summary></summary>
         * private void FillSignature() {
         *      textNote.Text="";
         *      sigBox.ClearTablet();
         *      if(!panelNote.Visible) {
         *              return;
         *      }
         *      DataRow obj=(DataRow)TreeDocuments.SelectedNode.Tag;
         *      textNote.Text=DocSelected.Note;
         *      sigBox.Visible=true;
         *      sigBox.SetTabletState(0);//never accepts input here
         *      labelInvalidSig.Visible=false;
         *      //Topaz box is not supported in Unix, since the required dll is Windows native.
         *      if(Environment.OSVersion.Platform!=PlatformID.Unix) {
         *              sigBoxTopaz.Location=sigBox.Location;//this puts both boxes in the same spot.
         *              sigBoxTopaz.Visible=false;
         *              ((Topaz.SigPlusNET)sigBoxTopaz).SetTabletState(0);
         *      }
         *      //A machine running Unix will have DocSelected.SigIsTopaz set to false here, because the visibility of the panelNote
         *      //will be set to false in the case of Unix and SigIsTopaz. Therefore, the else part of this if-else clause is always
         *      //run on Unix systems.
         *      if(DocSelected.SigIsTopaz) {
         *              if(DocSelected.Signature!=null && DocSelected.Signature!="") {
         *                      sigBox.Visible=false;
         *                      sigBoxTopaz.Visible=true;
         *                      ((Topaz.SigPlusNET)sigBoxTopaz).ClearTablet();
         *                      ((Topaz.SigPlusNET)sigBoxTopaz).SetSigCompressionMode(0);
         *                      ((Topaz.SigPlusNET)sigBoxTopaz).SetEncryptionMode(0);
         *                      ((Topaz.SigPlusNET)sigBoxTopaz).SetKeyString(GetHashString(DocSelected));
         *                      ((Topaz.SigPlusNET)sigBoxTopaz).SetEncryptionMode(2);//high encryption
         *                      ((Topaz.SigPlusNET)sigBoxTopaz).SetSigCompressionMode(2);//high compression
         *                      ((Topaz.SigPlusNET)sigBoxTopaz).SetSigString(DocSelected.Signature);
         *                      if(((Topaz.SigPlusNET)sigBoxTopaz).NumberOfTabletPoints() == 0) {
         *                              labelInvalidSig.Visible=true;
         *                      }
         *              }
         *      }
         *      else {
         *              sigBox.ClearTablet();
         *              if(DocSelected.Signature!=null && DocSelected.Signature!="") {
         *                      sigBox.Visible=true;
         *                      sigBoxTopaz.Visible=false;
         *                      sigBox.SetKeyString(GetHashString(DocSelected));
         *                      sigBox.SetSigString(DocSelected.Signature);
         *                      if(sigBox.NumberOfTabletPoints()==0) {
         *                              labelInvalidSig.Visible=true;
         *                      }
         *                      sigBox.SetTabletState(0);//not accepting input.
         *              }
         *      }
         * }*/

        private void ToolBarMain_ButtonClick(object sender, OpenDental.UI.ODToolBarButtonClickEventArgs e)
        {
            //MessageBox.Show(e.Button.Tag.ToString());
            switch (e.Button.Tag.ToString())
            {
            //case "Print":
            //	ToolBarPrint_Click();
            //	break;
            case "Back":
                OnBack_Click();
                break;

            case "Fwd":
                OnFwd_Click();
                break;

            case "FullPage":
                OnFullPage_Click();
                break;

            case "100":
                On100_Click();
                break;
                //case "Close":
                //	OnClose_Click();
                //	break;
            }
        }
Esempio n. 5
0
        private void ToolBarMain_ButtonClick(object sender, OpenDental.UI.ODToolBarButtonClickEventArgs e)
        {
            switch (e.Button.Tag.ToString())
            {
            case "Back":
                Back_Click();
                break;

            case "Forward":
                Forward_Click();
                break;

            case "Setup":
                Setup_Click();
                break;

            case "Home":
                Home_Click();
                break;

            case "Edit":
                Edit_Click();
                break;

            case "Print":
                Print_Click();
                break;

            case "Rename":
                Rename_Click();
                break;

            case "Delete":
                Delete_Click();
                break;

            case "History":
                History_Click();
                break;

            case "Inc Links":
                Inc_Link_Click();
                break;

            case "Add":
                Add_Click();
                break;

            case "Lists":
                Lists_Click();
                break;

            case "Search":
                Search_Click();
                break;
            }
        }
Esempio n. 6
0
        ///<summary></summary>
        protected void OnButtonClicked(ODToolBarButton myButton)
        {
            ODToolBarButtonClickEventArgs bArgs = new ODToolBarButtonClickEventArgs(myButton);

            if (ButtonClick != null)
            {
                ButtonClick(this, bArgs);
            }
        }
        private void ToolBarMain_ButtonClick(object sender, OpenDental.UI.ODToolBarButtonClickEventArgs e)
        {
            switch (e.Button.Tag.ToString())
            {
            case "ZoomIn":
                OnZoomIn_Click();
                break;

            case "ZoomOut":
                OnZoomOut_Click();
                break;
            }
        }
Esempio n. 8
0
        ///<summary></summary>
        protected void OnButtonClicked(ODToolBarButton myButton)
        {
            if (myButton.DateTimeLastClicked.AddMilliseconds(SystemInformation.DoubleClickTime) > DateTime.Now)
            {
                return;
            }
            myButton.DateTimeLastClicked = DateTime.Now;
            ODToolBarButtonClickEventArgs bArgs = new ODToolBarButtonClickEventArgs(myButton);

            if (ButtonClick != null)
            {
                ButtonClick(this, bArgs);
            }
        }
Esempio n. 9
0
        private void ToolBarMain_ButtonClick(object sender, OpenDental.UI.ODToolBarButtonClickEventArgs e)
        {
            switch (e.Button.Tag.ToString())
            {
            case "Save":
                Save_Click();
                break;

            case "Cancel":
                Cancel_Click();
                break;

            case "Int Link":
                Int_Link_Click();
                break;

            case "File Link":
                File_Link_Click();
                break;

            case "Folder Link":
                Folder_Link_Click();
                break;

            case "Ext Link":
                Ext_Link_Click();
                break;

            case "H1":
                H1_Click();
                break;

            case "H2":
                H2_Click();
                break;

            case "H3":
                H3_Click();
                break;

            case "Table":
                Table_Click();
                break;

            case "Image":
                Image_Click();
                break;
            }
        }
Esempio n. 10
0
        private void ToolBarMain_ButtonClick(object sender, OpenDental.UI.ODToolBarButtonClickEventArgs e)
        {
            //if(e.Button.Tag.GetType()==typeof(string)){
            //standard predefined button
            switch (e.Button.Tag.ToString())
            {
            case "AddList":
                OnAddList_Click();
                break;

            case "AddTask":
                OnAddTask_Click();
                break;
                //case "Exit":
                //	Close();
                //	break;
            }
        }
Esempio n. 11
0
        private void ToolBarMain_ButtonClick(object sender, OpenDental.UI.ODToolBarButtonClickEventArgs e)
        {
            switch (e.Button.Tag.ToString())
            {
            case "Add":
                Add_Click();
                break;

            case "Reconcile":
                Reconcile_Click();
                break;

            case "Print":
                Print_Click();
                break;

            case "Close":
                this.Close();
                break;
            }
        }
Esempio n. 12
0
        private void ToolBarMain_ButtonClick(object sender, OpenDental.UI.ODToolBarButtonClickEventArgs e)
        {
            switch (e.Button.Tag.ToString())
            {
            case "Preview":
                OnPreview_Click();
                break;

            case "Blank":
                OnBlank_Click();
                break;

            case "Print":
                OnPrint_Click();
                break;

            case "Labels":
                OnLabels_Click();
                break;

            /*case "Status":
             *      OnStatus_Click();
             *      break;*/
            case "Eclaims":
                OnEclaims_Click();
                break;

            case "Reports":
                OnReports_Click();
                break;

            case "Close":
                Close();
                break;
            }
        }
Esempio n. 13
0
 private void ToolBarMain_ButtonClick(object sender,ODToolBarButtonClickEventArgs e)
 {
     if(e.Button.Tag.GetType()==typeof(string)) {
         //standard predefined button
         switch(e.Button.Tag.ToString()) {
             case "Patient":
                 OnPatient_Click();
                 break;
             case "Commlog":
                 OnCommlog_Click();
                 break;
             case "Email":
                 OnEmail_Click();
                 break;
             case "Letter":
                 OnLetter_Click();
                 break;
             case "Form":
                 OnForm_Click();
                 break;
             case "Tasklist":
                 OnTasklist_Click();
                 break;
             case "Label":
                 OnLabel_Click();
                 break;
             case "Popups":
                 OnPopups_Click();
                 break;
         }
     }
     else if(e.Button.Tag.GetType()==typeof(long)) {
         ProgramL.Execute((long)e.Button.Tag,Patients.GetPat(CurPatNum));
     }
 }
Esempio n. 14
0
        private void ToolBarMain_ButtonClick(object sender, OpenDental.UI.ODToolBarButtonClickEventArgs e)
        {
            switch (e.Button.Tag.ToString())
            {
            case "Save":
                Save_Click();
                break;

            case "SaveDraft":
                SaveDraft_Click();
                break;

            case "Cancel":
                Cancel_Click();
                break;

            case "Int Link":
                Int_Link_Click();
                break;

            case "Bookmark":
                Bookmark_Click();
                break;

            case "File Link":
                File_Link_Click();
                break;

            case "Folder Link":
                Folder_Link_Click();
                break;

            case "Ext Link":
                Ext_Link_Click();
                break;

            case "H1":
                H1_Click();
                break;

            case "H2":
                H2_Click();
                break;

            case "H3":
                H3_Click();
                break;

            case "Table":
                Table_Click();
                break;

            case "Image":
                Image_Click();
                break;

            case "Lock":
                if (!Security.IsAuthorized(Permissions.WikiAdmin, true))
                {
                    return;
                }
                WikiPageCur.IsLocked = !WikiPageCur.IsLocked;
                if (WikiPageCur.IsLocked)
                {
                    //The wiki page is was locked, switch the icon to the unlock symbol because they locked it.
                    e.Button.Text       = Lan.g(this, "Unlock");
                    e.Button.ImageIndex = 19;
                }
                else
                {
                    //The wiki page is was unlocked, switch the icon to the lock symbol because they unlocked it.
                    e.Button.Text       = Lan.g(this, "Lock");
                    e.Button.ImageIndex = 20;
                }
                ToolBarMain.Invalidate();
                break;
            }
        }
Esempio n. 15
0
		private void paintTools_ButtonClick(object sender,ODToolBarButtonClickEventArgs e) {
			if(e.Button.Tag.GetType()==typeof(string)) {
				switch(e.Button.Tag.ToString()) {
					case "Crop":
						ToolBarCrop_Click();
						break;
					case "Hand":
						ToolBarHand_Click();
						break;
					case "ZoomIn":
						ToolBarZoomIn_Click();
						break;
					case "ZoomOut":
						ToolBarZoomOut_Click();
						break;
					case "Zoom100":
						ToolBarZoom100_Click();
						break;
					case "Flip":
						ToolBarFlip_Click();
						break;
					case "RotateL":
						ToolBarRotateL_Click();
						break;
					case "RotateR":
						ToolBarRotateR_Click();
						break;
				}
			}
			else if(e.Button.Tag.GetType()==typeof(int)) {
				ProgramL.Execute((int)e.Button.Tag,PatCur);
			}
		}
Esempio n. 16
0
		private void ToolBarHistory_ButtonClick(object sender,ODToolBarButtonClickEventArgs e) {
			switch(e.Button.Tag.ToString()){
				case "Refresh":
					RefreshHistory_Click();
					break;
				case "Undo":
					Undo_Click();
					break;
				case "PrintList":
					PrintHistory_Click();
					break;
				case "PrintItem":
					PrintItem_Click();
					break;
			}
		}
Esempio n. 17
0
 ///<summary></summary>
 protected void OnButtonClicked(ODToolBarButton myButton)
 {
     ODToolBarButtonClickEventArgs bArgs=new ODToolBarButtonClickEventArgs(myButton);
     if(ButtonClick!=null)
         ButtonClick(this,bArgs);
 }
Esempio n. 18
0
		private void toolBar2_ButtonClick(object sender,ODToolBarButtonClickEventArgs e) {
			switch(e.Button.Tag.ToString()) {
				case "Cut":
					Cut_Click();
					break;
				case "Copy":
					Copy_Click();
					break;
				case "Paste":
					Paste_Click();
					break;
				case "Undo":
					Undo_Click();
					break;
				case "Bold":
					Bold_Click();
					break;
				case "Italic":
					Italic_Click();
					break;
				case "Color":
					Color_Click();
					break;
				case "Font":
					Font_Click();
					break;
			}
		}
Esempio n. 19
0
        private void ToolBarMain_ButtonClick(object sender, OpenDental.UI.ODToolBarButtonClickEventArgs e)
        {
            switch (e.Button.Tag.ToString())
            {
            case "Back":
                Back_Click();
                break;

            case "Forward":
                Forward_Click();
                break;

            case "Setup":
                Setup_Click();
                break;

            case "Home":
                Home_Click();
                break;

            case "Edit":
                if (IsWikiPageLocked())
                {
                    return;
                }
                Edit_Click();
                break;

            case "Print":
                Print_Click();
                break;

            case "Rename":
                if (IsWikiPageLocked())
                {
                    return;
                }
                Rename_Click();
                break;

            case "Archive":
                if (IsWikiPageLocked())
                {
                    return;
                }
                Archive_Click();
                break;

            case "History":
                History_Click();
                break;

            case "Drafts":
                if (IsWikiPageLocked())
                {
                    return;
                }
                Drafts_Click();
                break;

            case "Inc Links":
                Inc_Link_Click();
                break;

            case "Add":
                Add_Click();
                break;

            case "Lists":
                Lists_Click();
                break;

            case "Search":
                Search_Click();
                break;
            }
        }