Esempio n. 1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.DlgSaveAs = ((PNotes.NET.WndSaveAs)(target));

            #line 13 "..\..\WndSaveAs.xaml"
                this.DlgSaveAs.Loaded += new System.Windows.RoutedEventHandler(this.DlgSaveAs_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.lblNoteName = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 3:
                this.txtName = ((System.Windows.Controls.TextBox)(target));

            #line 32 "..\..\WndSaveAs.xaml"
                this.txtName.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtName_TextChanged);

            #line default
            #line hidden
                return;

            case 4:
                this.lblInGroup = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 5:
                this.tvwGroups = ((PNotes.NET.PNTreeView)(target));
                return;

            case 6:
                this.cmdOK = ((System.Windows.Controls.Button)(target));

            #line 35 "..\..\WndSaveAs.xaml"
                this.cmdOK.Click += new System.Windows.RoutedEventHandler(this.cmdOK_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.cmdCancel = ((System.Windows.Controls.Button)(target));
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.DlgSaveAs = ((PNotes.NET.WndSaveAs)(target));
     
     #line 13 "..\..\WndSaveAs.xaml"
     this.DlgSaveAs.Loaded += new System.Windows.RoutedEventHandler(this.DlgSaveAs_Loaded);
     
     #line default
     #line hidden
     return;
     case 2:
     this.lblNoteName = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 3:
     this.txtName = ((System.Windows.Controls.TextBox)(target));
     
     #line 32 "..\..\WndSaveAs.xaml"
     this.txtName.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtName_TextChanged);
     
     #line default
     #line hidden
     return;
     case 4:
     this.lblInGroup = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 5:
     this.tvwGroups = ((PNotes.NET.PNTreeView)(target));
     return;
     case 6:
     this.cmdOK = ((System.Windows.Controls.Button)(target));
     
     #line 35 "..\..\WndSaveAs.xaml"
     this.cmdOK.Click += new System.Windows.RoutedEventHandler(this.cmdOK_Click);
     
     #line default
     #line hidden
     return;
     case 7:
     this.cmdCancel = ((System.Windows.Controls.Button)(target));
     return;
     }
     this._contentLoaded = true;
 }
Esempio n. 3
0
 private void saveNoteAs(PNote note)
 {
     try
     {
         _TempNote = note;
         var dlgSaveAs = new WndSaveAs(note.Name, note.GroupID) { Owner = this };
         dlgSaveAs.SaveAsNoteNameSet += dlgSaveAs_SaveAsNoteNameSet;
         var showDialog = dlgSaveAs.ShowDialog();
         if (showDialog == null || !showDialog.Value)
         {
             dlgSaveAs.SaveAsNoteNameSet -= dlgSaveAs_SaveAsNoteNameSet;
         }
     }
     catch (Exception ex)
     {
         PNStatic.LogException(ex);
     }
     finally
     {
         _TempNote = null;
     }
 }