home *** CD-ROM | disk | FTP | other *** search
- using System;
- using System.Drawing;
- using System.Collections;
- using System.ComponentModel;
- using System.Windows.Forms;
- using DesktopSidebar;
-
- namespace stickerpanel
- {
- /// <summary>
- /// Summary description for NoteDlg.
- /// </summary>
- public class AddNote : System.Windows.Forms.Form
- {
- private System.Windows.Forms.Button btnCancel;
- private System.Windows.Forms.Button button1;
- private System.Windows.Forms.Button btnOK;
- private System.Windows.Forms.TextBox txtNote;
- /// <summary>
- /// Required designer variable.
- /// </summary>
- private System.ComponentModel.Container components = null;
-
- public AddNote(ISidebar sidebar)
- {
- //
- // Required for Windows Form Designer support
- //
-
- InitializeComponent();
-
- sidebar.GetTranslator().TranslateDialog2(new DialogTranslator(this),"Stickerpanel.Note");
- }
-
- public string GetNote()
- {
- return txtNote.Text;
- }
-
- public void SetNote(string sNote)
- {
- txtNote.Text = sNote;
- }
-
-
-
-
-
-
- /// <summary>
- /// Clean up any resources being used.
- /// </summary>
- protected override void Dispose( bool disposing )
- {
- if( disposing )
- {
- if(components != null)
- {
- components.Dispose();
- }
- }
- base.Dispose( disposing );
- }
-
- #region Windows Form Designer generated code
- /// <summary>
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- /// </summary>
- private void InitializeComponent() {
- this.txtNote = new System.Windows.Forms.TextBox();
- this.btnOK = new System.Windows.Forms.Button();
- this.button1 = new System.Windows.Forms.Button();
- this.btnCancel = new System.Windows.Forms.Button();
- this.SuspendLayout();
- //
- // txtNote
- //
- this.txtNote.Location = new System.Drawing.Point(8, 8);
- this.txtNote.Multiline = true;
- this.txtNote.Name = "txtNote";
- this.txtNote.Size = new System.Drawing.Size(297, 160);
- this.txtNote.TabIndex = 0;
- this.txtNote.Text = "";
- this.txtNote.WordWrap = false;
- //
- // btnOK
- //
- this.btnOK.DialogResult = System.Windows.Forms.DialogResult.OK;
- this.btnOK.FlatStyle = System.Windows.Forms.FlatStyle.System;
- this.btnOK.Location = new System.Drawing.Point(144, 176);
- this.btnOK.Name = "btnOK";
- this.btnOK.TabIndex = 1;
- this.btnOK.Text = "OK";
- //
- // button1
- //
- this.button1.DialogResult = System.Windows.Forms.DialogResult.Abort;
- this.button1.FlatStyle = System.Windows.Forms.FlatStyle.System;
- this.button1.Location = new System.Drawing.Point(8, 176);
- this.button1.Name = "button1";
- this.button1.TabIndex = 3;
- this.button1.Text = "Delete";
- //
- // btnCancel
- //
- this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
- this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.System;
- this.btnCancel.Location = new System.Drawing.Point(231, 176);
- this.btnCancel.Name = "btnCancel";
- this.btnCancel.TabIndex = 2;
- this.btnCancel.Text = "Cancel";
-
- this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
- this.ClientSize = new System.Drawing.Size(314, 208);
-
- this.Controls.Add(this.button1);
-
- this.Controls.Add(this.btnCancel);
- this.Controls.Add(this.btnOK);
- this.Controls.Add(this.txtNote);
- this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
- this.Name = "AddNote";
- this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
-
- this.Text="Add a Note";
-
- this.Text = "Edit Note";
-
- this.ResumeLayout(false);
- }
- #endregion
-
-
- }
- }
-