void MainViewModel::Text(const char* value, bool notify) { if (_text != value) { _text = value; if (notify) PropertyChanged(PropertyChangedEventArgs("Text")); } }
void MainViewModel::UrlsCount(int value, bool notify) { if (_urlsCount != value) { _urlsCount = value; if (notify) PropertyChanged(PropertyChangedEventArgs("UrlsCount")); } }
void MainViewModel::StartUrl(const char* value, bool notify) { if (_startUrl != value) { _startUrl = value; if (notify) PropertyChanged(PropertyChangedEventArgs("StartUrl")); } }
void MainViewModel::CanStart(bool value) { if (value != _canStart) { _canStart = value; PropertyChanged(PropertyChangedEventArgs("CanStart")); } }
void MainViewModel::ThreadsCount(int value, bool notify) { if (_threadsCount != value) { _threadsCount = value; if (notify) PropertyChanged(PropertyChangedEventArgs("ThreadsCount")); } }
void MainViewModel::CanStop(bool value) { if (value != _canStop) { _canStop = value; PropertyChanged(PropertyChangedEventArgs("CanStop")); } }
void Rectangle::SetRight(float p_Right) { if (m_Right != p_Right) { m_Right = p_Right; PropertyChanged(this, PropertyChangedEventArgs("Right")); } }
void Rectangle::SetLeft(float p_Left) { if (m_Left != p_Left) { m_Left = p_Left; PropertyChanged(this, PropertyChangedEventArgs("Left")); } }
void Rectangle::SetBottom(float p_Bottom) { if (m_Bottom != p_Bottom) { m_Bottom = p_Bottom; PropertyChanged(this, PropertyChangedEventArgs("Bottom")); } }
void Rectangle::SetTop(float p_Top) { if (m_Top != p_Top) { m_Top = p_Top; PropertyChanged(this, PropertyChangedEventArgs("Top")); } }
void BrowserCore::SetNavState(bool isLoading, bool canGoBack, bool canGoForward) { if(isLoading != _isLoading) { _isLoading = isLoading; PropertyChanged(this, gcnew PropertyChangedEventArgs(L"IsLoading")); } if(canGoBack != _canGoBack) { _canGoBack = canGoBack; PropertyChanged(this, gcnew PropertyChangedEventArgs(L"CanGoBack")); } if(canGoForward != _canGoForward) { _canGoForward = canGoForward; PropertyChanged(this, gcnew PropertyChangedEventArgs(L"CanGoForward")); } }
void Rectangle::Set(float p_Top, float p_Bottom, float p_Left, float p_Right) { if (m_Top != p_Top || m_Bottom != p_Bottom || m_Left != p_Left || m_Right != p_Right) { m_Top = p_Top; m_Bottom = p_Bottom; m_Left = p_Left; m_Right = p_Right; PropertyChanged(this, PropertyChangedEventArgs("All")); } }
void MainViewModel::InitView() { CanStart(true); CanStop(false); ThreadsCount(_threadsCount); UrlsCount(_urlsCount); StartUrl(_startUrl.c_str()); Text(_text.c_str()); PropertyChanged(PropertyChangedEventArgs("CanStart")); PropertyChanged(PropertyChangedEventArgs("CanStop")); PropertyChanged(PropertyChangedEventArgs("ThreadsCount")); PropertyChanged(PropertyChangedEventArgs("UrlsCount")); PropertyChanged(PropertyChangedEventArgs("StartUrl")); PropertyChanged(PropertyChangedEventArgs("Text")); }
void BrowserCore::OnInitialized() { _isBrowserInitialized = true; PropertyChanged(this, gcnew PropertyChangedEventArgs(L"IsBrowserInitialized")); }