public StickyNote(ApplicationController _app, StickyNote _creator)
 {
     InitializeComponent();
     this.SetStyle(ControlStyles.ResizeRedraw, true);
     app = _app;
     creator = _creator;
 }
        public MainWindow(int tab, bool show, ApplicationController _app)
        {
            InitializeComponent();
            app = _app;
            this.Location = Properties.Settings.Default.mainLocation;

            if (!show)
                this.Hide();
            else {
                this.MainWindowTabControl.SelectedTab = this.MainWindowTabControl.TabPages[tab];
                this.Show();
            }
            cred = new SecureCredential();
        }
        public XmlController(ApplicationController _app)
        {
            app = _app;

            try {
                activeDocument = new XmlDocument();
                activeDocument.Load(document);
            //                addDoc = new XmlDocument();
            //                updateDoc = new XmlDocument();
            }
            catch (Exception e) {
                System.Console.WriteLine("Error in Constructor: " + e.Message);
                // TODO: Proper ERROR message here
            }
        }
        public StickyNote(String _key, String _created, String _modified, String _text,
                          int _show, int _width, int _height, int _font, int _color,
                          Point _p, ApplicationController _app, StickyNote _creator)
        {
            InitializeComponent();
            this.SetStyle(ControlStyles.ResizeRedraw, true);

            app = _app;
            creator = _creator;
            key = _key;
            NoteTextBox.Text = _text;
            created = _created;
            modified = _modified;
            this.Width = _width;
            this.Height = _height;
            this.Location = _p;

            //            setFont();
            //            setColor();
        }
 public HotkeyController(ApplicationController _app)
 {
     InitializeComponent();
     app = _app;
     registerGlobalKeyboardShortcuts();
 }
 public Initialize(ApplicationController _app)
 {
     app = _app;
     xml = app.Xml;
 }