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

C# FALibrary类代码示例

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

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



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

示例1: RegisterSequence

        public override void RegisterSequence(FALibrary.Sequence.FASequenceManager aSequenceManager)
        {
            base.RegisterSequence(aSequenceManager);

            Initialize = new FASequence(aSequenceManager);
            TransferBox = new FASequence(aSequenceManager);
            ReleaseLabel = new FASequence(aSequenceManager);
        }
开发者ID:vesteksoftware,项目名称:VT8670,代码行数:8,代码来源:FALoaderModule.cs


示例2: SetSequenceManager

 public void SetSequenceManager(FALibrary.Sequence.FASequenceManager mainSequenceManager,
     FALibrary.Sequence.FASequenceManager subSequenceManager)
 {
     MainSequenceManager = mainSequenceManager;
     SubSequenceManager = subSequenceManager;
     CreatePart();
     CreateModule();
 }
开发者ID:vesteksoftware,项目名称:TowerScanner,代码行数:8,代码来源:DependencyEquipment.cs


示例3: RegisterSequence

        public override void RegisterSequence(FALibrary.Sequence.FASequenceManager aSequenceManager)
        {
            Initialize = new FASequence(aSequenceManager);
            MoveToStackerPos = new FASequence(aSequenceManager);
            MoveToStackerPos.Name = "TrayUnloader.MoveToStackerPos";

            PushToStacker = new FASequence(aSequenceManager);
            PushToStacker.Name = "TrayUnloader.PushToStacker";
        }
开发者ID:vesteksoftware,项目名称:VT5025,代码行数:9,代码来源:FATrayUnloaderModule.cs


示例4: LanguageChangedEventHandler

 private void LanguageChangedEventHandler(object sender, FALibrary.FAGenericEventArgs<string> e)
 {
     Dispatcher.Invoke(
         new Action(
             delegate()
             {
                 treeView1.ItemsSource = null;
                 treeView1.ItemsSource = Manager.StringResourceManager.Instance.Resource.PropertyList;
             }));
 }
开发者ID:vesteksoftware,项目名称:VT5025,代码行数:10,代码来源:PageStringResource.xaml.cs


示例5: MakeSequence

 private void MakeSequence(FAMMCPosition position, FAPartAction action, FALibrary.Utility.FATime time, string alarmPropertyName)
 {
     PositionUtility obj = new PositionUtility();
     obj.Part = this;
     obj.Position = position;
     obj.PartAction = action;
     obj.Timeout = time;
     obj.AlarmPropertyName = alarmPropertyName;
     obj.Initialize();
 }
开发者ID:vesteksoftware,项目名称:VT5070-SSD,代码行数:10,代码来源:FAPartCustomServo.cs


示例6: SetDevice

        public override void SetDevice(FALibrary.Device.FADevice aDevice)
        {
            base.SetDevice(aDevice);

            Device.UseEOFString = true;
            Device.EOFString = "<EOF>";

            //Device.OnException +=
            //    delegate(object sender, FAGenericEventArgs<string> e)
            //    {
            //        Manager.LogManager.Instance.WriteSystemLog(e.ToString());
            //    };
        }
开发者ID:vesteksoftware,项目名称:VT5080-SSD,代码行数:13,代码来源:FACognexVisionDataReceiver.cs


示例7: EventHandlerUserChanged

        private void EventHandlerUserChanged(object sender, FALibrary.FAGenericEventArgs<Equipment.StandardEquipment.UserPermission> e)
        {
            Equipment.MainEquipment mainEquip = Equipment.EquipmentManager.Instance.MainEquip;

            if (e.Value == Equipment.StandardEquipment.UserPermission.RCS)
            {
                buttonStart.IsEnabled = true;
            }
            else
            {
                buttonStart.IsEnabled = false;
                buttonInitialize.IsEnabled = false;
            }
        }
开发者ID:vesteksoftware,项目名称:Onyang_3L_CSharp_VT5081,代码行数:14,代码来源:PageOperationButton.xaml.cs


示例8: UserChangedEventHandler

 public void UserChangedEventHandler(object sender, FALibrary.FAGenericEventArgs<Equipment.StandardEquipment.UserPermission> e)
 {
     if (e.Value == Equipment.StandardEquipment.UserPermission.MASTER)
     {
         labelRankingData.Visibility = System.Windows.Visibility.Visible;
         checkBoxRankingData.Visibility = System.Windows.Visibility.Visible;
         checkBoxRankingData.IsChecked = true;
     }
     else
     {
         labelRankingData.Visibility = System.Windows.Visibility.Hidden;
         checkBoxRankingData.Visibility = System.Windows.Visibility.Hidden;
         checkBoxRankingData.IsChecked = true;
     }
 }
开发者ID:vesteksoftware,项目名称:VT8642,代码行数:15,代码来源:PageJamLog.xaml.cs


示例9: EventHandlerUserChanged

        public void EventHandlerUserChanged(object sender, FALibrary.FAGenericEventArgs<Equipment.StandardEquipment.UserPermission> e)
        {
            Equipment.MainEquipment mainEquip = Equipment.EquipmentManager.Instance.MainEquip;

            if (e.Value == Equipment.StandardEquipment.UserPermission.MASTER ||
                e.Value == Equipment.StandardEquipment.UserPermission.MAINTENANCE)
            {
                EnabledModify = true;
            }
            else
            {
                EnableSelectJob(false);
                EnabledModify = false;
            }
        }
开发者ID:vesteksoftware,项目名称:TowerScanner,代码行数:15,代码来源:PageLotCount.xaml.cs


示例10: EventHandlerUserChanged

        public void EventHandlerUserChanged(object sender, FALibrary.FAGenericEventArgs<Equipment.StandardEquipment.UserPermission> e)
        {
            Equipment.MainEquipment mainEquip = Equipment.EquipmentManager.Instance.MainEquip;

            if (e.Value == Equipment.StandardEquipment.UserPermission.RCS)
            {
                Binding bd = new Binding();
                bd.Source = null;
                labelStatus.SetBinding(Label.ContentProperty, bd);
                labelStatus.Content = "RCS MODE";
            }
            else
            {
                BindingUtility.SetBindingObject(labelStatus, BindingMode.OneWay, mainEquip, Label.ContentProperty, "StatusString");
            }
        }
开发者ID:vesteksoftware,项目名称:SESS_CSharp_2nd_Line_VT5070,代码行数:16,代码来源:PageMain.xaml.cs


示例11: EventHandlerStatusChanged

 private void EventHandlerStatusChanged(object sender, FALibrary.FAGenericEventArgs<Equipment.EquipmentStatus> e)
 {
     Equipment.MainEquipment mainEquip = Equipment.EquipmentManager.Instance.MainEquip;
     if (mainEquip.Status == Equipment.EquipmentStatus.AUTO_STOP ||
         mainEquip.Status == Equipment.EquipmentStatus.NONE)
     {
         //_loadingBypass.IsEnabled = true;
         //_bandingBypass.IsEnabled = true;
     }
     else
     {
         if (mainEquip.Status == Equipment.EquipmentStatus.AUTO_RUNNING)
         {
             //_loadingBypass.IsEnabled = false;
             //_bandingBypass.IsEnabled = false;
         }
     }
 }
开发者ID:vesteksoftware,项目名称:VT8642,代码行数:18,代码来源:PageOption.xaml.cs


示例12: GenericPartStatus

        public GenericPartStatus(FALibrary.Part.MemoryBasePart.FAPartMemoryBaseGeneric part, string onName, string offName, string unknownName = "UNKNOWN")
        {
            Part = part;
            OnDisplayName = onName;
            OffDisplayName = offName;
            UnknownDisplayName = unknownName;

            Execute =
                delegate()
                {
                    if (Part.IsTurnOn())
                    {
                        Status = OnDisplayName;
                    }
                    else if (Part.IsTurnOff())
                    {
                        Status = OffDisplayName;
                    }
                    else
                    {
                        Status = UnknownDisplayName;
                    }
                };
        }
开发者ID:vesteksoftware,项目名称:TowerScanner,代码行数:24,代码来源:GUIUpdateManager.cs


示例13: CreatePartOutputIOList

        private Grid CreatePartOutputIOList(FALibrary.Part.FAPart part)
        {
            if (part == null)
                return new Grid();

            if (part.GetType().GetProperty("OutputIO") == null)
                return new Grid();

            object obj = part.GetType().GetProperty("OutputIO").GetValue(part, null);
            if (obj == null)
                return new Grid();

            try
            {
                List<FALibrary.Part.MemoryBasePart.FAPartOutputIOInfo> outputIO
                    = (List<FALibrary.Part.MemoryBasePart.FAPartOutputIOInfo>)obj;

                return CreatePartIOList(outputIO);
            }
            catch
            {
                return new Grid();
            }
        }
开发者ID:vesteksoftware,项目名称:VT8642,代码行数:24,代码来源:PageManual.xaml.cs


示例14: CreateOnOffStopIndependentOperationInfo

        private void CreateOnOffStopIndependentOperationInfo(Grid grid, FALibrary.Part.FAPart part, string name, Action<object> OnAction, Action<object> OffAction, Action<object> StopAction, Func<bool> IsOn, Func<bool> IsOff, string onName, string offName)
        {
            GeneralOperationInfo obj = new GeneralOperationInfo();
            RowDefinition rd = new RowDefinition();
            rd.Height = new GridLength(100, GridUnitType.Auto);
            rd.MinHeight = 100;
            grid.RowDefinitions.Add(rd);
            SetOperationGridColor(grid, grid.RowDefinitions.Count - 1);

            obj.Name = name;
            obj.On = OnAction;
            obj.Off = OffAction;
            obj.StatusOnName = onName;
            obj.StatusOffName = offName;
            obj.IsOn = IsOn;
            obj.IsOff = IsOff;

            Label labelName = new Label();
            labelName.Height = Double.NaN;
            labelName.Width = Double.NaN;
            labelName.HorizontalContentAlignment = System.Windows.HorizontalAlignment.Stretch;
            labelName.VerticalContentAlignment = System.Windows.VerticalAlignment.Stretch;
            labelName.HorizontalContentAlignment = System.Windows.HorizontalAlignment.Center;
            labelName.VerticalContentAlignment = System.Windows.VerticalAlignment.Center;
            labelName.Margin = new Thickness(2);
            Binding bd = new Binding("Name");
            bd.Source = obj;
            bd.Mode = BindingMode.OneWay;
            labelName.SetBinding(Label.ContentProperty, bd);

            Label labelStatus = new Label();
            labelStatus.Height = Double.NaN;
            labelStatus.Width = Double.NaN;
            labelStatus.HorizontalContentAlignment = System.Windows.HorizontalAlignment.Stretch;
            labelStatus.VerticalContentAlignment = System.Windows.VerticalAlignment.Stretch;
            labelStatus.HorizontalContentAlignment = System.Windows.HorizontalAlignment.Center;
            labelStatus.VerticalContentAlignment = System.Windows.VerticalAlignment.Center;
            labelStatus.Margin = new Thickness(2);
            bd = new Binding("Status");
            bd.Source = obj;
            bd.Mode = BindingMode.OneWay;
            labelStatus.SetBinding(Label.ContentProperty, bd);

            Grid gridInputIOList = CreatePartInputIOList(part);
            Grid gridOutputIOList = CreatePartOutputIOList(part);

            Button buttonOn, buttonOff, buttonStop;
            Grid gridButton = CreateOnOffStopButtonGrid(out buttonOn, out buttonOff, out buttonStop);
            buttonOn.Content = onName;
            buttonOff.Content = offName;
            buttonStop.Content = "STOP";

            buttonOn.Click +=
                delegate(object sender, RoutedEventArgs e)
                {
                    OnAction(sender);
                };

            buttonOff.Click +=
                delegate(object sender, RoutedEventArgs e)
                {
                    OffAction(sender);
                };

            buttonStop.Click +=
                delegate(object sender, RoutedEventArgs e)
                {
                    StopAction(sender);
                };

            TextBox textBoxRepeat = new TextBox();
            textBoxRepeat.HorizontalAlignment = System.Windows.HorizontalAlignment.Stretch;
            textBoxRepeat.VerticalAlignment = System.Windows.VerticalAlignment.Stretch;
            textBoxRepeat.HorizontalContentAlignment = System.Windows.HorizontalAlignment.Center;
            textBoxRepeat.VerticalContentAlignment = System.Windows.VerticalAlignment.Center;
            textBoxRepeat.Height = Double.NaN;
            textBoxRepeat.Width = Double.NaN;
            textBoxRepeat.Margin = new Thickness(2);
            bd = new Binding("RepeatTime");
            bd.Source = obj;
            bd.Mode = BindingMode.TwoWay;
            textBoxRepeat.SetBinding(TextBox.TextProperty, bd);

            CheckBox checkBoxRepeatUse = new CheckBox();
            checkBoxRepeatUse.HorizontalAlignment = System.Windows.HorizontalAlignment.Center;
            checkBoxRepeatUse.VerticalAlignment = System.Windows.VerticalAlignment.Center;
            checkBoxRepeatUse.LayoutTransform = new ScaleTransform(CHECKBOX_SIZE, CHECKBOX_SIZE);
            bd = new Binding("RepeatUse");
            bd.Source = obj;
            bd.Mode = BindingMode.TwoWay;
            checkBoxRepeatUse.SetBinding(CheckBox.IsCheckedProperty, bd);

            int rowCount = grid.RowDefinitions.Count - 1;
            grid.Children.Add(labelName);
            Grid.SetColumn(labelName, 0);
            Grid.SetRow(labelName, rowCount);

            grid.Children.Add(labelStatus);
            Grid.SetColumn(labelStatus, 1);
            Grid.SetRow(labelStatus, rowCount);
//.........这里部分代码省略.........
开发者ID:vesteksoftware,项目名称:VT8642,代码行数:101,代码来源:PageManual.xaml.cs


示例15: CreateOnOffStopOperationInfo

        private void CreateOnOffStopOperationInfo(Grid grid, FALibrary.Part.FAPart part, string name, Action<object> OnAction, Action<object> OffAction, Action<object> StopAction, Func<bool> IsOn, Func<bool> IsOff, string onName, string offName)
        {
            GeneralOperationInfo obj = new GeneralOperationInfo();
            RowDefinition rd = new RowDefinition();
            rd.Height = new GridLength(150, GridUnitType.Auto);
            rd.MinHeight = 100;
            grid.RowDefinitions.Add(rd);
            SetOperationGridColor(grid, grid.RowDefinitions.Count - 1);

            obj.Name = name;
            obj.On = OnAction;
            obj.Off = OffAction;
            obj.StatusOnName = onName;
            obj.StatusOffName = offName;
            obj.IsOn = IsOn;
            obj.IsOff = IsOff;

            Label labelName = new Label();
            labelName.Height = Double.NaN;
            labelName.Width = Double.NaN;
            labelName.HorizontalContentAlignment = System.Windows.HorizontalAlignment.Center;
            labelName.VerticalContentAlignment = System.Windows.VerticalAlignment.Center;
            labelName.Margin = new Thickness(2);
            Binding bd = new Binding("Name");
            bd.Source = obj;
            bd.Mode = BindingMode.OneWay;
            TextBlock textBlockName = new TextBlock();
            textBlockName.TextWrapping = TextWrapping.Wrap;
            textBlockName.TextAlignment = TextAlignment.Center;
            textBlockName.SetBinding(TextBlock.TextProperty, bd);
            labelName.Content = textBlockName;

            Label labelStatus = new Label();
            labelStatus.Height = Double.NaN;
            labelStatus.Width = Double.NaN;
            labelStatus.HorizontalContentAlignment = System.Windows.HorizontalAlignment.Center;
            labelStatus.VerticalContentAlignment = System.Windows.VerticalAlignment.Center;
            labelStatus.Margin = new Thickness(2);
            bd = new Binding("Status");
            bd.Source = obj;
            bd.Mode = BindingMode.OneWay;
            TextBlock textBlockStatus = new TextBlock();
            textBlockStatus.TextWrapping = TextWrapping.Wrap;
            textBlockStatus.TextAlignment = TextAlignment.Center;
            textBlockStatus.SetBinding(TextBlock.TextProperty, bd);
            labelStatus.Content = textBlockStatus;

            Grid gridInputIOList = CreatePartInputIOList(part);
            Grid gridOutputIOList = CreatePartOutputIOList(part);

            Button buttonOnOff = new Button();
            buttonOnOff.Height = Double.NaN;
            buttonOnOff.Width = Double.NaN;
            buttonOnOff.HorizontalContentAlignment = System.Windows.HorizontalAlignment.Center;
            buttonOnOff.VerticalContentAlignment = System.Windows.VerticalAlignment.Center;
            buttonOnOff.Margin = new Thickness(2);
            bd = new Binding("ButtonCaption");
            bd.Source = obj;
            bd.Mode = BindingMode.OneWay;
            buttonOnOff.SetBinding(Button.ContentProperty, bd);
            buttonOnOff.Click +=
                delegate(object sender, RoutedEventArgs e)
                {
                    if (obj.IsOn())
                        OffAction(sender);
                    else
                    {
                        if (obj.IsOff())
                            OnAction(sender);
                        else if (StopAction != null)
                        {
                            StopAction(sender);
                        }
                        else
                            OnAction(sender);
                    }
                };

            TextBox textBoxRepeat = new TextBox();
            textBoxRepeat.HorizontalContentAlignment = System.Windows.HorizontalAlignment.Center;
            textBoxRepeat.VerticalContentAlignment = System.Windows.VerticalAlignment.Center;
            textBoxRepeat.Height = Double.NaN;
            textBoxRepeat.Width = Double.NaN;
            textBoxRepeat.Margin = new Thickness(2);
            bd = new Binding("RepeatTime");
            bd.Source = obj;
            bd.Mode = BindingMode.TwoWay;
            FAFramework.Utility.BindingUtility.SetBindingObject(textBoxRepeat, BindingMode.TwoWay, obj, TextBox.TextProperty, "RepeatTime");

            CheckBox checkBoxRepeatUse = new CheckBox();
            checkBoxRepeatUse.HorizontalAlignment = System.Windows.HorizontalAlignment.Center;
            checkBoxRepeatUse.VerticalAlignment = System.Windows.VerticalAlignment.Center;
            checkBoxRepeatUse.LayoutTransform = new ScaleTransform(CHECKBOX_SIZE, CHECKBOX_SIZE);
            bd = new Binding("RepeatUse");
            bd.Source = obj;
            bd.Mode = BindingMode.TwoWay;
            checkBoxRepeatUse.SetBinding(CheckBox.IsCheckedProperty, bd);

            int rowCount = grid.RowDefinitions.Count - 1;
            grid.Children.Add(labelName);
//.........这里部分代码省略.........
开发者ID:vesteksoftware,项目名称:VT8642,代码行数:101,代码来源:PageManual.xaml.cs


示例16: CreateGeneralOperationInfo

 private void CreateGeneralOperationInfo(Grid grid, FALibrary.Part.FAPart part, string name, Action<object> OnAction, Action<object> OffAction, Func<bool> IsOn, Func<bool> IsOff, string onName, string offName)
 {
     CreateOnOffStopOperationInfo(grid, part, name, OnAction, OffAction, null, IsOn, IsOff, onName, offName);
 }
开发者ID:vesteksoftware,项目名称:VT8642,代码行数:4,代码来源:PageManual.xaml.cs


示例17: CreateOnOffOperationInfo

 private void CreateOnOffOperationInfo(Grid grid, string name, FALibrary.Part.MemoryBasePart.FAPartMemoryBaseGeneric part, string onName, string offName)
 {
     CreateGeneralOperationInfo(grid, part, name, part.TurnOnAction.Execute, part.TurnOffAction.Execute, part.IsTurnOn, part.IsTurnOff, onName, offName);
 }
开发者ID:vesteksoftware,项目名称:VT8642,代码行数:4,代码来源:PageManual.xaml.cs


示例18: CreateDuplexCaptureOperationInfo

        private void CreateDuplexCaptureOperationInfo(Grid grid, FALibrary.Part.FAPart part, string name, Action<object> OnAction, Action<object> OffAction, Action<object> StopAction, Func<bool> IsOn, Func<bool> IsOff, string onName, string offName)
        {
            GeneralOperationInfo obj = new GeneralOperationInfo();
            RowDefinition rd = new RowDefinition();
            rd.Height = new GridLength(100, GridUnitType.Auto);
            rd.MinHeight = 100;
            SetOperationGridColor(grid, grid.RowDefinitions.Count - 1);

            grid.RowDefinitions.Add(rd);
            obj.Name = name;
            obj.On = OnAction;
            obj.Off = OffAction;
            obj.StatusOnName = onName;
            obj.StatusOffName = offName;
            obj.IsOn = IsOn;
            obj.IsOff = IsOff;

            Label labelName = new Label();
            labelName.Height = Double.NaN;
            labelName.Width = Double.NaN;
            labelName.HorizontalContentAlignment = System.Windows.HorizontalAlignment.Stretch;
            labelName.VerticalContentAlignment = System.Windows.VerticalAlignment.Stretch;
            labelName.HorizontalContentAlignment = System.Windows.HorizontalAlignment.Center;
            labelName.VerticalContentAlignment = System.Windows.VerticalAlignment.Center;
            labelName.Margin = new Thickness(2);
            Binding bd = new Binding("Name");
            bd.Source = obj;
            bd.Mode = BindingMode.OneWay;
            labelName.SetBinding(Label.ContentProperty, bd);

            Label labelStatus = new Label();
            labelStatus.Height = Double.NaN;
            labelStatus.Width = Double.NaN;
            labelStatus.HorizontalContentAlignment = System.Windows.HorizontalAlignment.Stretch;
            labelStatus.VerticalContentAlignment = System.Windows.VerticalAlignment.Stretch;
            labelStatus.HorizontalContentAlignment = System.Windows.HorizontalAlignment.Center;
            labelStatus.VerticalContentAlignment = System.Windows.VerticalAlignment.Center;
            labelStatus.Margin = new Thickness(2);
            bd = new Binding("Status");
            bd.Source = obj;
            bd.Mode = BindingMode.OneWay;
            labelStatus.SetBinding(Label.ContentProperty, bd);

            Grid gridInputIOList = CreatePartInputIOList(part);
            Grid gridOutputIOList = CreatePartOutputIOList(part);

            Button buttonOn = new Button();
            buttonOn.Height = Double.NaN;
            buttonOn.Width = Double.NaN;
            buttonOn.HorizontalContentAlignment = System.Windows.HorizontalAlignment.Stretch;
            buttonOn.VerticalContentAlignment = System.Windows.VerticalAlignment.Stretch;
            buttonOn.HorizontalContentAlignment = System.Windows.HorizontalAlignment.Center;
            buttonOn.VerticalContentAlignment = System.Windows.VerticalAlignment.Center;
            buttonOn.Content = onName;
            buttonOn.Margin = new Thickness(2);
            buttonOn.PreviewMouseDown +=
                delegate(object sender, MouseButtonEventArgs e)
                {
                    OnAction(sender);
                };

            buttonOn.PreviewMouseUp +=
                delegate(object sender, MouseButtonEventArgs e)
                {
                    StopAction(sender);
                };

            Button buttonOff = new Button();
            buttonOff.Height = Double.NaN;
            buttonOff.Width = Double.NaN;
            buttonOff.HorizontalContentAlignment = System.Windows.HorizontalAlignment.Stretch;
            buttonOff.VerticalContentAlignment = System.Windows.VerticalAlignment.Stretch;
            buttonOff.HorizontalContentAlignment = System.Windows.HorizontalAlignment.Center;
            buttonOff.VerticalContentAlignment = System.Windows.VerticalAlignment.Center;
            buttonOff.Content = offName;
            buttonOff.Margin = new Thickness(2);
            buttonOff.PreviewMouseDown +=
                delegate(object sender, MouseButtonEventArgs e)
                {
                    OffAction(sender);
                };

            buttonOff.PreviewMouseUp +=
                delegate(object sender, MouseButtonEventArgs e)
                {
                    StopAction(sender);
                };

            ColumnDefinition col1 = new ColumnDefinition();
            col1.Width = new GridLength(100, GridUnitType.Star);
            ColumnDefinition col2 = new ColumnDefinition();
            col2.Width = new GridLength(100, GridUnitType.Star);

            Grid buttonGrid = new Grid();
            buttonGrid.Width = double.NaN;
            buttonGrid.HorizontalAlignment = System.Windows.HorizontalAlignment.Stretch;
            buttonGrid.VerticalAlignment = System.Windows.VerticalAlignment.Stretch;
            buttonGrid.Height = double.NaN;
            buttonGrid.Margin = new Thickness(0);
            buttonGrid.ColumnDefinitions.Add(col1);
//.........这里部分代码省略.........
开发者ID:vesteksoftware,项目名称:VT8642,代码行数:101,代码来源:PageManual.xaml.cs


示例19: EventHandlerUserChanged

 private void EventHandlerUserChanged(object sender, FALibrary.FAGenericEventArgs<Equipment.StandardEquipment.UserPermission> e)
 {
     if (e.Value == Equipment.StandardEquipment.UserPermission.OPERATOR)
     {
         IsEnabledOutputIODirectControl = false;
     }
     else
     {
         if (e.Value == Equipment.StandardEquipment.UserPermission.MASTER)
         {
             IsEnabledOutputIODirectControl = true;
         }
         else
             IsEnabledOutputIODirectControl = false;
     }
 }
开发者ID:vesteksoftware,项目名称:VT8642,代码行数:16,代码来源:PageManual.xaml.cs


示例20: Show

        public bool Show(Equipment.EquipmentBase equipment, string defaultName, out string name, FALibrary.Alarm.FAAlarm alarm, string moreMsg, bool useSound, Module.StateSignalModule stateSignalModule)
        {
            ConfigClasses.EquipmentStateConfig stateConfig = null;

            if (equipment != null)
            {
                try
                {
                    stateSignalModule = equipment.StateSignalModuleReferance;

                    if (stateSignalModule != null && stateSignalModule.EquipmentStateConfigs != null)
                        stateConfig = stateSignalModule.EquipmentStateConfigs.NotifyMessageConfig;
                }
                catch
                {
                }
            }

            return Show(equipment, defaultName, out name, alarm, moreMsg, useSound, stateSignalModule);
        }
开发者ID:vesteksoftware,项目名称:VT5070-SSD,代码行数:20,代码来源:MessageWindowManager.cs



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C# FAtlasElement类代码示例发布时间:2022-05-24
下一篇:
C# Eyousoft_yhq类代码示例发布时间: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