コード例 #1
0
 public NodeViewModelEntry()
 {
     this.Build();
     Binding = new BindingControler <NodeViewModelEntry>(this, new Expression <Func <NodeViewModelEntry, object> >[] {
         (w => w.Subject)
     });
 }
コード例 #2
0
 public PhotoView()
 {
     Binding = new BindingControler <PhotoView> (this, new Expression <Func <PhotoView, object> >[] {
         (w => w.ImageFile)
     });
     this.Build();
 }
コード例 #3
0
ファイル: yComboBox.cs プロジェクト: kozlov-d/QSProjects
 public yComboBox()
 {
     Binding = new BindingControler <yComboBox> (this, new Expression <Func <yComboBox, object> >[] {
         (w => w.Active),
         (w => w.ActiveText),
     });
 }
コード例 #4
0
 public RepresentationEntry()
 {
     this.Build();
     Binding = new BindingControler <RepresentationEntry>(this, new Expression <Func <RepresentationEntry, object> >[] {
         (w => w.Subject)
     });
 }
コード例 #5
0
ファイル: yTextView.cs プロジェクト: kozlov-d/QSProjects
 public yTextView()
 {
     Binding = new BindingControler <yTextView> (this, new Expression <Func <yTextView, object> >[] {
         (w => w.Buffer.Text)
     });
     Buffer.Changed += Buffer_Changed;
 }
コード例 #6
0
 public PhotoView()
 {
     Binding = new BindingControler<PhotoView> (this, new Expression<Func<PhotoView, object>>[] {
         (w => w.ImageFile)
     });
     this.Build();
 }
コード例 #7
0
ファイル: ValidatedEntry.cs プロジェクト: kozlov-d/QSProjects
 public ValidatedEntry()
 {
     ValidationMode = ValidationType.None;
     Binding        = new BindingControler <ValidatedEntry>(this, new Expression <Func <ValidatedEntry, object> >[] {
         (w => w.Text)
     });
 }
コード例 #8
0
 public yTimeEntry()
 {
     Binding = new BindingControler<yTimeEntry> (this, new Expression<Func<yTimeEntry, object>>[] {
         (w => w.DateTime),
         (w => w.Time),
     });
 }
コード例 #9
0
ファイル: yTimeEntry.cs プロジェクト: Enzogord/QSProjects
 public yTimeEntry()
 {
     Binding = new BindingControler <yTimeEntry> (this, new Expression <Func <yTimeEntry, object> >[] {
         (w => w.DateTime),
         (w => w.Time),
     });
 }
コード例 #10
0
 public yComboBox()
 {
     Binding = new BindingControler<yComboBox> (this, new Expression<Func<yComboBox, object>>[] {
         (w => w.Active),
         (w => w.ActiveText),
     });
 }
コード例 #11
0
        public HideHorizontalSeparator()
        {
            this.Build();

            Binding = new BindingControler <HideHorizontalSeparator>(this, new Expression <Func <HideHorizontalSeparator, object> >[] {
                (w => w.ArrowDirection),
            });
        }
コード例 #12
0
 public yComboBoxEntry()
 {
     Binding = new BindingControler <yComboBoxEntry> (this, new Expression <Func <yComboBoxEntry, object> >[] {
         (w => w.Active),
         (w => w.ActiveText),
         (w => w.Entry.Text)
     });
 }
コード例 #13
0
        public RightSidePanel()
        {
            this.Build();

            Binding = new BindingControler <RightSidePanel>(this, new Expression <Func <RightSidePanel, object> >[] {
                (w => w.IsHided),
            });
        }
コード例 #14
0
 public WidgetContainerView()
 {
     this.Build();
     Binding = new BindingControler <WidgetContainerView>(this, new Expression <Func <WidgetContainerView, object> >[] {
         (w => w.WidgetViewModel),
         (w => w.Widget)
     });
 }
コード例 #15
0
 public AdditionalLoadingTextView()
 {
     Build();
     Binding = new BindingControler <AdditionalLoadingTextView>(this, new Expression <Func <AdditionalLoadingTextView, object> >[]
     {
         w => w.AdditionalLoadingDocument
     });
     InitializeBuffer();
 }
コード例 #16
0
ファイル: ySpinButton.cs プロジェクト: Enzogord/GammaBinding
 public ySpinButton(Adjustment adjustment, double climb_rate, uint digits) : base(adjustment, climb_rate, digits)
 {
     Binding = new BindingControler <ySpinButton> (this, new Expression <Func <ySpinButton, object> >[] {
         (w => w.Value),
         (w => w.ValueAsInt),
         (w => w.ValueAsDecimal),
         (w => w.ValueAsShort),
     });
 }
コード例 #17
0
ファイル: yRadioButton.cs プロジェクト: kozlov-d/QSProjects
        public yRadioButton() : base("")
        {
            Binding = new BindingControler <yRadioButton> (this, new Expression <Func <yRadioButton, object> >[] {
                (w => w.Active),
                (w => w.BindedValue)
            });

            Toggled += YRadioButton_Toggled;
        }
コード例 #18
0
 public ySpinButton(Adjustment adjustment, double climb_rate, uint digits)
     : base(adjustment, climb_rate, digits)
 {
     Binding = new BindingControler<ySpinButton> (this, new Expression<Func<ySpinButton, object>>[] {
         (w => w.Value),
         (w => w.ValueAsInt),
         (w => w.ValueAsDecimal),
     });
 }
コード例 #19
0
 public yDatePicker()
 {
     Binding = new BindingControler <yDatePicker> (this, new Expression <Func <yDatePicker, object> >[] {
         (w => w.Date),
         (w => w.DateOrNull),
         (w => w.DateText),
         (w => w.IsEmpty)
     });
 }
コード例 #20
0
 public yDatePeriodPicker()
 {
     Binding = new BindingControler <yDatePeriodPicker> (this, new Expression <Func <yDatePeriodPicker, object> >[] {
         (w => w.StartDate),
         (w => w.StartDateOrNull),
         (w => w.EndDate),
         (w => w.EndDateOrNull)
     });
 }
コード例 #21
0
 public ySpinButton(double min, double max, double step)
     : base(min, max, step)
 {
     Binding = new BindingControler<ySpinButton> (this, new Expression<Func<ySpinButton, object>>[] {
         (w => w.Value),
         (w => w.ValueAsInt),
         (w => w.ValueAsDecimal),
     });
 }
コード例 #22
0
ファイル: ySpinButton.cs プロジェクト: Enzogord/GammaBinding
 public ySpinButton(double min, double max, double step) : base(min, max, step)
 {
     Binding = new BindingControler <ySpinButton> (this, new Expression <Func <ySpinButton, object> >[] {
         (w => w.Value),
         (w => w.ValueAsInt),
         (w => w.ValueAsDecimal),
         (w => w.ValueAsShort),
     });
 }
コード例 #23
0
 public yDatePicker()
 {
     Binding = new BindingControler<yDatePicker> (this, new Expression<Func<yDatePicker, object>>[] {
         (w => w.Date),
         (w => w.DateOrNull),
         (w => w.DateText),
         (w => w.IsEmpty)
     });
 }
コード例 #24
0
ファイル: EmployeePhone.cs プロジェクト: Art8m/Vodovozfork
        public EmployeePhone()
        {
            global::Gtk.Image image = new global::Gtk.Image();
            image.Pixbuf = global::Gdk.Pixbuf.LoadFromResource("Vodovoz.icons.phone.make-call-16.png");
            Image        = image;
            Sensitive    = false;

            Binding = new BindingControler <EmployeePhone>(this, new Expression <Func <EmployeePhone, object> >[] {});
        }
コード例 #25
0
        public TimeEntry()
        {
            Binding = new BindingControler <TimeEntry>(this, new Expression <Func <TimeEntry, object> >[] {
                (w => w.DateTime),
                (w => w.Time),
            });

            //Что бы установить ограничения на максимальное количество символов, по умолчанию.
            ShowSeconds = false;
        }
コード例 #26
0
 public yLegalName()
 {
     Binding = new BindingControler<yLegalName> (this, new string[]{
         this.GetPropertyName (w => w.OwnName),
         this.GetPropertyName (w => w.Ownership),
         this.GetPropertyName (w => w.FullName)
     });
     NameChanged += DataLegalName_NameChanged;
     OwnershipChanged += DataLegalName_OwnershipChanged;
     FullNameChanged += DataLegalName_FullNameChanged;
 }
コード例 #27
0
        public DisableSpinButton()
        {
            this.Build();

            Binding = new BindingControler <DisableSpinButton> (this, new Expression <Func <DisableSpinButton, object> >[] {
                (w => w.Active),
                (w => w.Value),
                (w => w.ValueAsInt),
                (w => w.ValueAsDecimal)
            });
        }
コード例 #28
0
        public SaveTemplateWidget()
        {
            this.Build();

            Binding = new BindingControler <SaveTemplateWidget>(this, new Expression <Func <SaveTemplateWidget, object> >[] {
                (w => w.Template),
                (w => w.File),
            });

            worker.FileUpdated += Worker_FileUpdated;
        }
コード例 #29
0
 public yLegalName()
 {
     Binding = new BindingControler <yLegalName> (this, new string[] {
         this.GetPropertyName(w => w.OwnName),
         this.GetPropertyName(w => w.Ownership),
         this.GetPropertyName(w => w.FullName)
     });
     NameChanged      += DataLegalName_NameChanged;
     OwnershipChanged += DataLegalName_OwnershipChanged;
     FullNameChanged  += DataLegalName_FullNameChanged;
 }
コード例 #30
0
        public DisableSpinButton()
        {
            this.Build();

            Binding = new BindingControler<DisableSpinButton> (this, new Expression<Func<DisableSpinButton, object>>[] {
                (w => w.Active),
                (w => w.Value),
                (w => w.ValueAsInt),
                (w => w.ValueAsDecimal)
            });
        }
コード例 #31
0
        public VehicleRegistrationNumberEntry()
        {
            Build();
            Binding = new BindingControler <VehicleRegistrationNumberEntry>(this,
                                                                            new Expression <Func <VehicleRegistrationNumberEntry, object> >[] { w => w.Number });

            comboCountry.ItemsEnum    = typeof(Country);
            comboCountry.Changed     += (sender, args) => _country = (Country)comboCountry.SelectedItem;
            comboCountry.SelectedItem = Country;

            entryNumber.Changed += (sender, args) => UpdateNumber(entryNumber.Text, false);
        }
コード例 #32
0
        public DateRangePicker()
        {
            this.Build();

            Binding = new BindingControler <DateRangePicker>(this, new Expression <Func <DateRangePicker, object> >[] {
                (w => w.StartDate),
                (w => w.StartDateOrNull),
                (w => w.EndDate),
                (w => w.EndDateOrNull)
            });

            UpdateEntryText();
        }
コード例 #33
0
        public TemplateWidget()
        {
            this.Build();

            Binding = new BindingControler<TemplateWidget> (this, new Expression<Func<TemplateWidget, object>>[] {
                (w => w.Template),
                (w => w.ChangedDoc),
            });

            worker.FileUpdated += Worker_FileUpdated;
            UpdateState();
            UpdateSize();
        }
コード例 #34
0
        public StreetEntry()
        {
            Binding = new BindingControler<StreetEntry> (this, new Expression<Func<StreetEntry, object>>[] {
                (w => w.Street), (w => w.StreetDistrict)
            });

            this.Completion = new EntryCompletion ();
            this.Completion.MinimumKeyLength = 0;
            this.Completion.MatchSelected += Completion_MatchSelected;
            this.Completion.MatchFunc = Completion_MatchFunc;
            var cell = new CellRendererText ();
            this.Completion.PackStart (cell, true);
            this.Completion.SetCellDataFunc (cell, OnCellLayoutDataFunc);
        }
コード例 #35
0
 public TimeRangePicker()
 {
     this.Build();
     entTimeRange.MaxLength = entTimeRange.WidthChars = 13;
     Binding = new BindingControler <TimeRangePicker>(
         this,
         new Expression <Func <TimeRangePicker, object> >[] {
         (w => w.TimeStart),
         (w => w.TimeEnd)
     }
         );
     btnSetRange.Clicked += BtnSetRange_Clicked;
     TimePeriodChanged   += (sender, e) => UpdateEntryText();
 }
コード例 #36
0
        public yEnumComboBox()
        {
            Binding = new BindingControler<yEnumComboBox> (this, new Expression<Func<yEnumComboBox, object>>[] {
                (w => w.Active),
                (w => w.ActiveText),
                (w => w.SelectedItem),
                (w => w.SelectedItemOrNull)
            });

            comboListStore = new ListStore (typeof(string), typeof(object));
            CellRendererText text = new CellRendererText ();
            PackStart (text, false);
            AddAttribute (text, "text", (int)comboDataColumns.Title);
            Model = comboListStore;
        }
コード例 #37
0
        public yListComboBox()
        {
            Binding = new BindingControler <yListComboBox> (this, new Expression <Func <yListComboBox, object> >[] {
                (w => w.Active),
                (w => w.ActiveText),
                (w => w.SelectedItem)
            });

            comboListStore = new ListStore(typeof(string), typeof(object));
            CellRendererText text = new CellRendererText();

            PackStart(text, false);
            AddAttribute(text, "text", (int)comboDataColumns.Title);
            Model = comboListStore;
        }
コード例 #38
0
ファイル: StreetEntry.cs プロジェクト: Enzogord/QSProjects
        public StreetEntry()
        {
            Binding = new BindingControler <StreetEntry> (this, new Expression <Func <StreetEntry, object> >[] {
                (w => w.Street), (w => w.StreetDistrict)
            });

            this.Completion = new EntryCompletion();
            this.Completion.MinimumKeyLength = 0;
            this.Completion.MatchSelected   += Completion_MatchSelected;
            this.Completion.MatchFunc        = Completion_MatchFunc;
            var cell = new CellRendererText();

            this.Completion.PackStart(cell, true);
            this.Completion.SetCellDataFunc(cell, OnCellLayoutDataFunc);
        }
コード例 #39
0
        public StreetEntry()
        {
            Binding = new BindingControler <StreetEntry>(this, new Expression <Func <StreetEntry, object> >[]
            {
                w => w.FiasGuid, w => w.StreetName, w => w.StreetDistrict, w => w.StreetTypeName, w => w.StreetTypeNameShort
            });

            Completion = new EntryCompletion();
            Completion.MinimumKeyLength = 0;
            Completion.MatchSelected   += Completion_MatchSelected;
            Completion.MatchFunc        = (completion, key, iter) => true;
            var cell = new CellRendererText();

            Completion.PackStart(cell, true);
            Completion.SetCellDataFunc(cell, OnCellLayoutDataFunc);
        }
コード例 #40
0
ファイル: TemplateWidget.cs プロジェクト: kozlov-d/QSProjects
        public TemplateWidget()
        {
            this.Build();

            Binding = new BindingControler <TemplateWidget>(this, new Expression <Func <TemplateWidget, object> >[] {
                (w => w.Template),
                (w => w.ChangedDoc),
            });

            comboTemplates.SetRenderTextFunc <IDocTemplate>(x => x.Name);

            worker.FileUpdated += Worker_FileUpdated;
            UpdateState();
            UpdateSize();

            CanOpenDocument = true;
        }
コード例 #41
0
        public HouseEntry()
        {
            Binding = new BindingControler <HouseEntry>(this, new Expression <Func <HouseEntry, object> >[]
            {
                w => w.FiasGuid,
                w => w.BuildingName
            });

            Completion = new EntryCompletion();
            Completion.MinimumKeyLength = 0;
            Completion.MatchSelected   += Completion_MatchSelected;
            Completion.MatchFunc        = Completion_MatchFunc;
            var cell = new CellRendererText();

            Completion.PackStart(cell, true);
            Completion.SetCellDataFunc(cell, OnCellLayoutDataFunc);
        }
コード例 #42
0
        public HouseEntry()
        {
            Binding = new BindingControler<HouseEntry> (this, new Expression<Func<HouseEntry, object>>[] {
                (w => w.House),
                (w => w.OsmCompletion),
                (w => w.Text),
                (w => w.Latitude),
                (w => w.Longitude)
            });

            this.Completion = new EntryCompletion ();
            this.Completion.MinimumKeyLength = 0;
            this.Completion.MatchSelected += Completion_MatchSelected;
            this.Completion.MatchFunc = Completion_MatchFunc;
            var cell = new CellRendererText ();
            this.Completion.PackStart (cell, true);
            this.Completion.SetCellDataFunc (cell, OnCellLayoutDataFunc);
        }
コード例 #43
0
        public FullAddressEntry()
        {
            this.Build ();

            Binding = new BindingControler<FullAddressEntry> (this, new Expression<Func<FullAddressEntry, object>>[] {
                (w => w.Region),
                (w => w.CityInDistrict),
                (w => w.City),
                (w => w.Street),
                (w => w.StreetInDistrict),
                (w => w.Binding)
            });

            entryCity.CitySelected += (sender, e) => {
                entryStreet.CityId = entryCity.OsmId;
            };

            entryStreet.StreetSelected += (sender, e) => {
                entryBuilding.Street = new OsmStreet (-1, entryStreet.CityId, entryStreet.Street, entryStreet.StreetDistrict);
            };
        }
コード例 #44
0
 public yLabel()
 {
     Binding = new BindingControler<yLabel> (this);
 }
コード例 #45
0
 public yEntry()
 {
     Binding = new BindingControler<yEntry> (this, new Expression<Func<yEntry, object>>[] {
         (w => w.Text)
     });
 }
コード例 #46
0
 public yImageViewer()
 {
     Binding = new BindingControler<yImageViewer> (this);
 }
コード例 #47
0
 public yEntryReference()
 {
     Binding = new BindingControler<yEntryReference> (this, new Expression<Func<yEntryReference, object>>[] {
         (w => w.Subject)
     });
 }
コード例 #48
0
 public yCheckButton()
 {
     Binding = new BindingControler<yCheckButton> (this, new Expression<Func<yCheckButton, object>>[] {
         (w => w.Active)
     });
 }