/// <summary> /// Call the form which allows the user to create a new workset. /// </summary> protected override void CreateNewWorkset() { // Skip, if the Dispose() method has been called. if (IsDisposed) { return; } Cursor = Cursors.WaitCursor; FormWorksetDefineWatch formWorksetDefineWatch = new FormWorksetDefineWatch(m_WorksetCollection); // Allow the shown form to re-highlight the selected configuration before it closes. formWorksetDefineWatch.CalledFrom = this; formWorksetDefineWatch.ShowDialog(); Cursor = Cursors.Default; }
/// <summary> /// Call the form which allows the user to edit the selected workset. /// </summary> /// <param name="selectedItem">The selected workset item.</param> protected override void EditSelectedWorkset(WorksetItem selectedItem) { // Skip, if the Dispose() method has been called. if (IsDisposed) { return; } Cursor = Cursors.WaitCursor; // Show the form which allows the user to edit the workset. FormWorksetDefineWatch formWorksetDefineWatch = new FormWorksetDefineWatch(m_WorksetCollection, selectedItem.Workset, false); // Allow the shown form to re-highlight the selected configuration before it closes. formWorksetDefineWatch.CalledFrom = this; formWorksetDefineWatch.ShowDialog(); Cursor = Cursors.Default; }
/// <summary> /// Call the form which allows the user to edit the selected workset. /// </summary> /// <param name="selectedItem">The selected workset item.</param> protected override void EditSelectedWorkset(WorksetItem selectedItem) { // Skip, if the Dispose() method has been called. if (IsDisposed) { return; } Cursor = Cursors.WaitCursor; // Show the form which allows the user to edit the workset. FormWorksetDefineWatch formWorksetDefineWatch = new FormWorksetDefineWatch(m_WorksetCollection, selectedItem.Workset, false); // Allow the shown form to re-highlight the selected configuration before it closes. formWorksetDefineWatch.CalledFrom = this; formWorksetDefineWatch.ShowDialog(); Cursor = Cursors.Default; }
/// <summary> /// Call the form which allows the user to create a new workset. /// </summary> protected override void CreateNewWorkset() { // Skip, if the Dispose() method has been called. if (IsDisposed) { return; } Cursor = Cursors.WaitCursor; FormWorksetDefineWatch formWorksetDefineWatch = new FormWorksetDefineWatch(m_WorksetCollection); // Allow the shown form to re-highlight the selected configuration before it closes. formWorksetDefineWatch.CalledFrom = this; formWorksetDefineWatch.ShowDialog(); Cursor = Cursors.Default; }
/// <summary> /// Show the dialog form to allow the user to modify the current workset. /// </summary> public void ReplaceWatch() { MainWindow.Cursor = Cursors.WaitCursor; try { // Call the constructor that displays the Apply button on the form. FormWorksetDefineWatch formWorksetDefineWatch = new FormWorksetDefineWatch(Workset.RecordedWatch, Workset.RecordedWatch.ActiveWorkset, true); MainWindow.ShowDialog(formWorksetDefineWatch); } catch (Exception exception) { MessageBox.Show(exception.Message, Resources.MBCaptionInformation, MessageBoxButtons.OK, MessageBoxIcon.Error); return; } finally { MainWindow.Cursor = Cursors.Default; } }