public RequestTab() { InitializeComponent(); CounterDefault ReqNameText_CounterDefault = new CounterDefault { Number = ReqNameText.MaxLength.ToString() }; ReqNameLabelLength.Content = ReqNameText_CounterDefault; CounterDefault ReqDescText_CounterDefault = new CounterDefault { Number = ReqDescText.MaxLength.ToString() }; ReqDescLabelLength.Content = ReqDescText_CounterDefault; CounterDefault CommentText_CounterDefault = new CounterDefault { Number = CommentText.MaxLength.ToString() }; CommentLabelLength.Content = CommentText_CounterDefault; CounterDefault AdminText_CounterDefault = new CounterDefault { Number = AdminText.MaxLength.ToString() }; IfALength.Content = AdminText_CounterDefault; }
public ScheduleTab() { InitializeComponent(); ResourceDictionary res = (ResourceDictionary)Application.LoadComponent(new Uri("ScheduleDictionary.xaml", UriKind.Relative)); Style = new Style(); Enabled = (Style)res["GroupBoxEnabled"]; Disabled = (Style)res["GroupBoxDisabled"]; CounterDefault counterDefault = new CounterDefault { Number = SchNameText.MaxLength.ToString() }; SchNameTextLength.Content = counterDefault; OneTimeGroup.Style = Enabled; DailyBasicGroup.Style = Disabled; WeeklyGroup.Style = Disabled; MonthlyGroup.Style = Disabled; StartsGroup.Style = Enabled; MonthlyTheNum.ItemsSource = new string[] { "First", "Secound", "Third", "Last" }; MonthlyTheDay.ItemsSource = new string[] { "Sunday", "Monday", "Thuesday", "Wednesday", "Thursday", "Friday", "Saturday" }; }