or
public Form1() { InitializeComponent(); radPanel1.EnableGesture(GestureType.Pan); radPanel1.EnableGesture(GestureType.Zoom); radPanel1.PanGesture += new PanGestureEventHandler(ProcessPan); radPanel1.ZoomGesture += new ZoomGestureEventHandler(ProcessZoom); }

try { WaitingBar(true); Save(); WaitingBar(false); } catch (Exception) { WaitingBar(false); RadMessageBox.Show("Error Occured"); throw; }private void WaitingBar(bool input) { if (input == true) { radWaitingBar1.Visible = true; radWaitingBar1.StartWaiting(); radWaitingBar1.Invalidate(); radWaitingBar1.Update(); radWaitingBar1.Refresh(); Application.DoEvents(); } else { radWaitingBar1.Visible = false; radWaitingBar1.StopWaiting(); } }



