public RtmTaskListRepository(RtmBackend backend) { if (backend == null) throw new ArgumentNullException ("backend"); this.backend = backend; Notes = new Collection<Tuple<string, NoteData>> (); }
public RtmTaskRepository(RtmBackend backend) { if (backend == null) { throw new ArgumentNullException("backend"); } this.backend = backend; }
public RtmTaskListRepository(RtmBackend backend) { if (backend == null) { throw new ArgumentNullException("backend"); } this.backend = backend; Notes = new Collection <Tuple <string, INoteCore> > (); }
public RtmNoteRepository(RtmBackend backend) { if (backend == null) throw new ArgumentNullException ("backend"); this.backend = backend; }
public RtmPreferencesWidget(RtmBackend backend, IPreferences preferences) : base() { if (backend == null) { throw new ArgumentNullException("backend"); } if (preferences == null) { throw new ArgumentNullException("preferences"); } this.backend = backend; this.preferences = preferences; LoadPreferences(); BorderWidth = 0; // We're using an event box so we can paint the background white EventBox imageEb = new EventBox(); imageEb.BorderWidth = 0; imageEb.ModifyBg(StateType.Normal, new Gdk.Color(255, 255, 255)); imageEb.ModifyBase(StateType.Normal, new Gdk.Color(255, 255, 255)); imageEb.Show(); VBox mainVBox = new VBox(false, 0); mainVBox.BorderWidth = 10; mainVBox.Show(); Add(mainVBox); // Add the rtm logo image = new Gtk.Image(normalPixbuf); image.Show(); //make the dialog box look pretty without hard coding total size and //therefore clipping displays with large fonts. Alignment spacer = new Alignment((float)0.5, 0, 0, 0); spacer.SetPadding(0, 0, 125, 125); spacer.Add(image); spacer.Show(); imageEb.Add(spacer); mainVBox.PackStart(imageEb, true, true, 0); // Status message label statusLabel = new Label(); statusLabel.Justify = Gtk.Justification.Center; statusLabel.Wrap = true; statusLabel.LineWrap = true; statusLabel.Show(); statusLabel.UseMarkup = true; statusLabel.UseUnderline = false; authButton = new LinkButton(Catalog.GetString("Click Here to Connect")); authButton.Clicked += OnAuthButtonClicked; if (isAuthorized) { statusLabel.Text = "\n\n" + Catalog.GetString("You are currently connected"); string userName = preferences.Get(PreferencesKeys.UserNameKey); if (userName != null && userName.Trim() != string.Empty) { statusLabel.Text = "\n\n" + Catalog.GetString("You are currently connected as") + "\n" + userName.Trim(); } } else { statusLabel.Text = "\n\n" + Catalog.GetString("You are not connected"); authButton.Show(); } mainVBox.PackStart(statusLabel, false, false, 0); mainVBox.PackStart(authButton, false, false, 0); Label blankLabel = new Label("\n"); blankLabel.Show(); mainVBox.PackStart(blankLabel, false, false, 0); }
public RtmPreferencesWidget(RtmBackend backend, IPreferences preferences) : base() { if (backend == null) throw new ArgumentNullException ("backend"); if (preferences == null) throw new ArgumentNullException ("preferences"); this.backend = backend; this.preferences = preferences; LoadPreferences (); BorderWidth = 0; // We're using an event box so we can paint the background white EventBox imageEb = new EventBox (); imageEb.BorderWidth = 0; imageEb.ModifyBg(StateType.Normal, new Gdk.Color(255,255,255)); imageEb.ModifyBase(StateType.Normal, new Gdk.Color(255,255,255)); imageEb.Show (); VBox mainVBox = new VBox(false, 0); mainVBox.BorderWidth = 10; mainVBox.Show(); Add(mainVBox); // Add the rtm logo image = new Gtk.Image (normalPixbuf); image.Show(); //make the dialog box look pretty without hard coding total size and //therefore clipping displays with large fonts. Alignment spacer = new Alignment((float)0.5, 0, 0, 0); spacer.SetPadding(0, 0, 125, 125); spacer.Add(image); spacer.Show(); imageEb.Add (spacer); mainVBox.PackStart(imageEb, true, true, 0); // Status message label statusLabel = new Label(); statusLabel.Justify = Gtk.Justification.Center; statusLabel.Wrap = true; statusLabel.LineWrap = true; statusLabel.Show(); statusLabel.UseMarkup = true; statusLabel.UseUnderline = false; authButton = new LinkButton ( #if GETTEXT Catalog.GetString ("Click Here to Connect")); #elif ANDROID #endif authButton.Clicked += OnAuthButtonClicked; if ( isAuthorized ) { statusLabel.Text = "\n\n" + #if GETTEXT Catalog.GetString ("You are currently connected"); #elif ANDROID #endif string userName = preferences.Get (PreferencesKeys.UserNameKey); if (userName != null && userName.Trim () != string.Empty) statusLabel.Text = "\n\n" + #if GETTEXT Catalog.GetString ("You are currently connected as") + #elif ANDROID #endif "\n" + userName.Trim(); } else { statusLabel.Text = "\n\n" + #if GETTEXT Catalog.GetString ("You are not connected"); #elif ANDROID #endif authButton.Show(); } mainVBox.PackStart(statusLabel, false, false, 0); mainVBox.PackStart(authButton, false, false, 0); Label blankLabel = new Label("\n"); blankLabel.Show(); mainVBox.PackStart(blankLabel, false, false, 0); }