• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# DisplayType类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中DisplayType的典型用法代码示例。如果您正苦于以下问题:C# DisplayType类的具体用法?C# DisplayType怎么用?C# DisplayType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



DisplayType类属于命名空间,在下文中一共展示了DisplayType类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: HexRender

 public HexRender(DisplayType displayType, int height, Point worldCenter)
     : this()
 {
     this.worldCenter = worldCenter;
     this.DisplayType = displayType;
     this.height = height;
 }
开发者ID:Rupini,项目名称:HexEditor,代码行数:7,代码来源:HexRender.cs


示例2: CompatibilitySourceToDispPair

 protected internal CompatibilitySourceToDispPair(DisplayType disp, SourceType source,
                                                  Func<Mapping, SourceType, bool> linkPredicate,
                                                  Func<Mapping> createMappingFunc)
     : base(disp, source, linkPredicate, createMappingFunc)
 {
     _jupiterIn = null;
 }
开发者ID:AlexSneg,项目名称:VIRD-1.0,代码行数:7,代码来源:CompatibilitySourceToDispPair.cs


示例3: GetResourcesForUpload

        //public virtual ResourceForUpload[] GetResourcesForUpload(Display display,
        //    ResourceDescriptor[] resourceDescriptors,
        //    out bool isEnoughFreeSpace)
        //{
        //    isEnoughFreeSpace = true;
        //    return new ResourceForUpload[] { };
        //}

        public virtual ResourceDescriptor[] GetResourcesForUpload(DisplayType displayType,
                                                                  ResourceDescriptor[] resourceDescriptors,
                                                                  out bool isEnoughFreeSpace)
        {
            isEnoughFreeSpace = true;
            return new ResourceDescriptor[] { };
        }
开发者ID:AlexSneg,项目名称:VIRD-1.0,代码行数:15,代码来源:ServerModule.cs


示例4: SGLcd

        public SGLcd(string portName, DisplayType displayType)
        {
            // Defaults for SerialPort are the same as the settings for the LCD, but I'll set them explicitly
            _serialPort = new SerialPort(portName, 115200, Parity.None, 8, StopBits.One);

            _displayType = displayType;
        }
开发者ID:mariusl,项目名称:SerialGraphicLcd,代码行数:7,代码来源:SerialGraphicDisplay.cs


示例5: BuildAuthorizeUrl

        /// <summary>
        /// Constructs an authorize url.
        /// </summary>
        public static string BuildAuthorizeUrl(
            string clientId, 
            string redirectUrl, 
            IEnumerable<string> scopes, 
            ResponseType responseType,
            DisplayType display,
            ThemeType theme,
            string locale,
            string state)
        {
            Debug.Assert(!string.IsNullOrEmpty(clientId));
            Debug.Assert(!string.IsNullOrEmpty(redirectUrl));
            Debug.Assert(!string.IsNullOrEmpty(locale));

            IDictionary<string, string> options = new Dictionary<string, string>();
            options[AuthConstants.ClientId] = clientId;
            options[AuthConstants.Callback] = redirectUrl;
            options[AuthConstants.Scope] = BuildScopeString(scopes);
            options[AuthConstants.ResponseType] = responseType.ToString().ToLowerInvariant();
            options[AuthConstants.Display] = display.ToString().ToLowerInvariant();
            options[AuthConstants.Locale] = locale;
            options[AuthConstants.ClientState] = EncodeAppRequestState(state);

            if (theme != ThemeType.None)
            {
                options[AuthConstants.Theme] = theme.ToString().ToLowerInvariant();
            }

            return BuildAuthUrl(AuthEndpointsInfo.AuthorizePath, options);
        }
开发者ID:d20021,项目名称:LiveSDK-for-Windows,代码行数:33,代码来源:LiveAuthUtility.cs


示例6: DisplayedMolecule

 public DisplayedMolecule(string codeName, string realName, string val, DisplayType displayType = DisplayType.MOLECULELIST)
 {
   _updated = true;
   _codeName = codeName;
   _realName = realName;
   _val = val;
   _displayType = displayType;
 }
开发者ID:CyberCRI,项目名称:Hero.Coli,代码行数:8,代码来源:DisplayedMolecule.cs


示例7: CreatureList

 public CreatureList(int initialPage, DisplayType displayType, string sortedHeader, bool desc) {
     this.currentPage = initialPage;
     this.displayType = displayType;
     this.sortedHeader = sortedHeader;
     this.desc = desc;
     objects = null;
     InitializeComponent();
 }
开发者ID:Ikkish,项目名称:Tibialyzer,代码行数:8,代码来源:CreatureList.cs


示例8: DisplayMatch

        public DisplayMatch(OrganizerViewModel ovm, ObservableMatch match, DisplayType displayType)
        {
            Match = match;
            MatchDisplayType = displayType;

            //Modify ViewModel state when an action is initiated
            Action startAction = () =>
            {
                ovm.ErrorMessage = null;
                ovm.IsBusy = true;
            };

            //Modify ViewModel state when an action is completed
            Action endAction = () =>
            {
                ovm.IsBusy = false;
            };

            //Modify ViewModel state when an action comes back with an exception
            Action<Exception> errorHandler = ex =>
            {
                if (ex.InnerException is ChallongeApiException)
                {
                    var cApiEx = (ChallongeApiException)ex.InnerException;

                    if (cApiEx.Errors != null) ovm.ErrorMessage = cApiEx.Errors.Aggregate((one, two) => one + "\r\n" + two);
                    else ovm.ErrorMessage = string.Format("Error with ResponseStatus \"{0}\" and StatusCode \"{1}\". {2}", cApiEx.RestResponse.ResponseStatus,
                        cApiEx.RestResponse.StatusCode, cApiEx.RestResponse.ErrorMessage);
                }
                else
                {
                    ovm.ErrorMessage = ex.NewLineDelimitedMessages();
                }

                ovm.IsBusy = false;
            };

            Player1Wins = Command.CreateAsync(() => true, () => Match.ReportPlayer1Victory(SetScore.Create(1, 0)), startAction, endAction, errorHandler);
            Player2Wins = Command.CreateAsync(() => true, () => Match.ReportPlayer2Victory(SetScore.Create(0, 1)), startAction, endAction, errorHandler);

            Player1WinsScored = Command.CreateAsync<SetScore[]>(_ => true, scores => Match.ReportPlayer1Victory(scores), _ => startAction(), _ => endAction(), (_, ex) => errorHandler(ex));
            Player2WinsScored = Command.CreateAsync<SetScore[]>(_ => true, scores => Match.ReportPlayer2Victory(scores), _ => startAction(), _ => endAction(), (_, ex) => errorHandler(ex));

            Player1ToggleMissing = Command.CreateAsync(() => true, () => Match.Player1.IsMissing = !Match.Player1.IsMissing, startAction, endAction, errorHandler);
            Player2ToggleMissing = Command.CreateAsync(() => true, () => Match.Player2.IsMissing = !Match.Player2.IsMissing, startAction, endAction, errorHandler);

            AssignStation = Command.CreateAsync<Station>(_ => true, s => Match.AssignPlayersToStation(s.Name), _ => startAction(), _ => endAction(), (_, ex) => errorHandler(ex));
            CallMatchAnywhere = Command.CreateAsync(() => true, () => Match.AssignPlayersToStation("Any"), startAction, endAction, errorHandler);
            CallMatch = Command.CreateAsync<Station>(_ => true, s =>
            {
                if (!match.IsMatchInProgress)
                {
                    if (s != null) Match.AssignPlayersToStation(s.Name);
                    else Match.AssignPlayersToStation("Any");
                }
            }, _ => startAction(), _ => endAction(), (_, ex) => errorHandler(ex));
            UncallMatch = Command.CreateAsync(() => true, () => Match.ClearStationAssignment(), startAction, endAction, errorHandler);
        }
开发者ID:elindell1,项目名称:ChallongeMatchDisplay,代码行数:58,代码来源:DisplayMatch.cs


示例9: Laptop

 //Constructors
 public Laptop(int price, string model, string manufacturer, int displaySize, string processor, int ramMemory, string video, DisplayType type)
     : base(price, model, manufacturer)
 {
     this.displaySize = displaySize;
     this.processor = processor;
     this.ramMemory = ramMemory;
     this.video = video;
     this.typeOfLaptopDisplay = type;
 }
开发者ID:sabrie,项目名称:TelerikAcademy,代码行数:10,代码来源:Laptop.cs


示例10: NotEnoughSpaceRequest

 private void NotEnoughSpaceRequest(DisplayType displayType)
 {
     // запишем в лог - ответ продолжить
     _config.EventLog.WriteWarning(string.Format("На агенте {0} закончилось свободное место", displayType.Name));
     if (_showPreparator != null)
     {
         _showPreparator.ResponseForNotEnoughFreeSpaceRequest(displayType, AgentAction.Continue);
     }
 }
开发者ID:AlexSneg,项目名称:VIRD-1.0,代码行数:9,代码来源:BackgroundPresentationManager.cs


示例11: SecurityPortal

        /// <summary>
        /// Initializes a new WPF window.
        /// </summary>
        /// <param name="displayType">Type of the message received from security API which is used to decide controls to be displayed on the screen.</param>
        public SecurityPortal(DisplayType displayType)
        {
            InitializeComponent();

            m_displayType = displayType;

            Closed += Window_Closed;
            MouseDown += Window_MouseDown;
            ButtonLogin.Click += ButtonLogin_Click;
            ButtonExit.Click += ButtonExit_Click;
            ButtonOK.Click += ButtonOK_Click;
            ButtonChange.Click += ButtonChange_Click;
            ButtonChangePasswordLink.Click += ButtonChangePasswordLink_Click;
            ButtonForgotPasswordLink.Click += ButtonForgotPasswordLink_Click;
            ButtonLoginLink.Click += ButtonLoginLink_Click;
            TextBoxUserName.TextChanged += TextBox_TextChanged;
            TextBoxPassword.PasswordChanged += PasswordBox_PasswordChanged;
            TextBoxChangePasswordUserName.TextChanged += TextBox_TextChanged;
            TextBoxOldPassword.PasswordChanged += PasswordBox_PasswordChanged;
            TextBoxNewPassword.PasswordChanged += PasswordBox_PasswordChanged;
            TextBoxConfirmPassword.PasswordChanged += PasswordBox_PasswordChanged;
            TextBoxUserName.GotFocus += TextBox_GotFocus;
            TextBoxPassword.GotFocus += TextBox_GotFocus;
            TextBoxChangePasswordUserName.GotFocus += TextBox_GotFocus;
            TextBoxOldPassword.GotFocus += TextBox_GotFocus;
            TextBoxNewPassword.GotFocus += TextBox_GotFocus;
            TextBoxConfirmPassword.GotFocus += TextBox_GotFocus;

            AppDomain.CurrentDomain.SetPrincipalPolicy(PrincipalPolicy.WindowsPrincipal);
            ConfigurationFile config = ConfigurationFile.Current;
            CategorizedSettingsElementCollection settings = config.Settings[SecurityProviderBase.DefaultSettingsCategory];
            string setting = settings["ApplicationName"].Value;

            if (!string.IsNullOrWhiteSpace(setting))
            {
                TextBlockApplicationLogin.Text = setting + " :: Login";
                TextBlockAccessDenied.Text = setting + " :: Access Denied";
                TextBlockChangePassword.Text = setting + " :: Change Password";
            }

            // Load last user login ID setting
            settings.Add("LastLoginID", Thread.CurrentPrincipal.Identity.Name, "Last user login ID", false, SettingScope.User);
            setting = settings["LastLoginID"].Value;

            if (string.IsNullOrWhiteSpace(setting))
                setting = Thread.CurrentPrincipal.Identity.Name;

            TextBoxUserName.Text = setting;

            // Inititialize screen
            ClearErrorMessage();
            ManageScreenVisualization();

            // Open this window on top of all other windows
            Topmost = true;
        }
开发者ID:rmc00,项目名称:gsf,代码行数:60,代码来源:SecurityPortal.xaml.cs


示例12: CompatibilityDispToSourcePair

 protected internal CompatibilityDispToSourcePair(DisplayType disp, SourceType source,
                                                  Func<Mapping, SourceType, bool> linkPredicate,
                                                  Func<Mapping> createMappingFunc)
 {
     _linkPredicate = linkPredicate;
     _createMappingFunc = createMappingFunc;
     Source = source;
     _disp = disp;
     _Compatible = _disp.MappingList.Exists(m => _linkPredicate(m, Source));
 }
开发者ID:AlexSneg,项目名称:VIRD-1.0,代码行数:10,代码来源:CompatibilityDispToSourcePair.cs


示例13: BuildWebAuthorizeUrl

 /// <summary>
 /// Constructs an authorize url.
 /// </summary>
 public static string BuildWebAuthorizeUrl(
     string clientId,
     string redirectUrl,
     IEnumerable<string> scopes,
     DisplayType display,
     string locale,
     string state)
 {
     return BuildAuthorizeUrl(clientId, redirectUrl, scopes, ResponseType.Code, display, ThemeType.None, locale, state);
 }
开发者ID:d20021,项目名称:LiveSDK-for-Windows,代码行数:13,代码来源:LiveAuthUtility.cs


示例14: Display2Fields

 protected Display2Field Display2Fields(DisplayType dT, params FieldType[] fT)
 {
     Display2Field field = new Display2Field();
     List<FieldType> list = new List<FieldType>();
     foreach (FieldType type in fT)
     {
         list.Add(type);
     }
     field.Display = dT;
     field.Fields = list;
     return field;
 }
开发者ID:xiaoyj,项目名称:Space,代码行数:12,代码来源:IColorBase.cs


示例15: DisplayTypeToString

		public static string DisplayTypeToString(DisplayType type)
		{
			switch (type)
			{
				default:
					return type.ToString();
				case DisplayType.FixedPoint_12_4:
					return "Fixed Point 12.4";
				case DisplayType.FixedPoint_20_12:
					return "Fixed Point 20.12";
			}
		}
开发者ID:ddugovic,项目名称:RASuite,代码行数:12,代码来源:Watch.cs


示例16: WordWatch

		/// <summary>
		/// Inialize a new instance of <see cref="WordWatch"/>
		/// </summary>
		/// <param name="domain"><see cref="MemoryDomain"/> where you want to track</param>
		/// <param name="address">The address you want to track</param>
		/// <param name="type">How you you want to display the value See <see cref="DisplayType"/></param>
		/// <param name="bigEndian">Specify the endianess. true for big endian</param>
		/// <param name="note">A custom note about the <see cref="Watch"/></param>
		/// <param name="value">Current value</param>
		/// <param name="previous">Previous value</param>
		/// <param name="changeCount">How many times value has changed</param>
		/// <exception cref="ArgumentException">Occurs when a <see cref="DisplayType"/> is incompatible with <see cref="WatchSize.Word"/></exception>
		internal WordWatch(MemoryDomain domain, long address, DisplayType type, bool bigEndian, string note, ushort value, ushort previous, int changeCount)
			: base(domain, address, WatchSize.Word, type, bigEndian, note)
		{
			if (value == 0)
			{
				this._value = GetWord();
			}
			else
			{
				this._value = value;
			}
			this._previous = previous;
			this._changecount = changeCount;
		}
开发者ID:henke37,项目名称:BizHawk,代码行数:26,代码来源:WordWatch.cs


示例17: Init

        public bool Init(DisplayType display, TechnicalServices.Persistence.SystemPersistence.Presentation.Window window)
        {
            this.InitBorderTitle(window, panel1);
            ActiveWindow activeWindow = window as ActiveWindow;
            if (activeWindow != null)
            {
                _croppingBottom = activeWindow.CroppingBottom;
                _croppingLeft = activeWindow.CroppingLeft;
                _croppingRight = activeWindow.CroppingRight;
                _croppingTop = activeWindow.CroppingTop;
            }

            return true;
        }
开发者ID:AlexSneg,项目名称:VIRD-1.0,代码行数:14,代码来源:IEForm.cs


示例18: GetAuthorizeUrl

 public string GetAuthorizeUrl(string state, string scope = null, DisplayType display = DisplayType.Default, int gut = 1)
 {
     var config = new Dictionary<string, string>(){
                                                     {"response_type", "code"},
                                                     {"client_id", AppKey},
                                                     {"redirect_uri", CallbackUrl},
                                                     {"state", state ?? string.Empty},
                                                     {"scope", scope ?? string.Empty},
                                                     {"display", display.ToString().ToLower()},
                                                     {"g_ut", gut.ToString()}
                                                 };
     var builder = new UriBuilder(AuthorizeUrl) { Query = Utility.BuildQueryString(config) };
     return builder.ToString();
 }
开发者ID:westonfw,项目名称:opensdk,代码行数:14,代码来源:QqConnectClient.cs


示例19: ByteWatch

        public ByteWatch(MemoryDomain domain, long address, DisplayType type, bool bigEndian, string notes)
        {
            _address = address;
            _domain = domain;
            _value = _previous = GetByte();
            if (AvailableTypes(WatchSize.Byte).Contains(type))
            {
                _type = type;
            }

            _bigEndian = bigEndian;
            if (notes != null)
            {
                Notes = notes;
            }
        }
开发者ID:cas1993per,项目名称:bizhawk,代码行数:16,代码来源:Watch.cs


示例20: SimulationContextMenuView

 public SimulationContextMenuView(TreeNode node, OtherSubSysInterface subSys, UserInformationInMap userInfo, SimGroupManager groupManager, IApplicationContext appContext)
 {
     this.components = null;
     this.simGroupIndex = 0;
     this.isfirst = true;
     this.FT = FieldType.State;
     this.DT = DisplayType.DiscreteValues;
     this.calculatFlag = false;
     this.isFirstAddGroup = false;
     this.m_SubSysInterface = subSys;
     this.m_UserInfo = userInfo;
     this.m_SimGroupManager = groupManager;
     this.m_ParentNode = node;
     this.AppContext = appContext;
     this.InitializeComponent();
     this.Init();
 }
开发者ID:xiaoyj,项目名称:Space,代码行数:17,代码来源:SimulationContextMenuView.cs



注:本文中的DisplayType类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Distance类代码示例发布时间:2022-05-24
下一篇:
C# DisplayOrientations类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap