예제 #1
0
 public StickyNote(ApplicationController _app, StickyNote _creator)
 {
     InitializeComponent();
     this.SetStyle(ControlStyles.ResizeRedraw, true);
     app = _app;
     creator = _creator;
 }
예제 #2
0
        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();
        }
예제 #3
0
        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
            }
        }
예제 #4
0
        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();
        }
예제 #5
0
 public HotkeyController(ApplicationController _app)
 {
     InitializeComponent();
     app = _app;
     registerGlobalKeyboardShortcuts();
 }
예제 #6
0
 public Initialize(ApplicationController _app)
 {
     app = _app;
     xml = app.Xml;
 }